Click here to Skip to main content
15,885,767 members
Articles / Desktop Programming / MFC

EasyFtp 1.3.2 (for Applications)

Rate me:
Please Sign up or sign in to vote.
4.91/5 (28 votes)
21 Mar 2004CC (ASA 2.5)7 min read 149.7K   3.1K   119  
A 'drop-in' FTP solution for applications providing a full GUI, extended commandline options and no resource files. Use standalone or compiled into your own app.
// DlgUnits.h: interface for the CDlgUnits class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_)
#define AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CDlgUnits  
{
public:
	CDlgUnits(HWND hDlg = NULL);
	virtual ~CDlgUnits();

	int ToPixelsX(int x) const;
	int ToPixelsY(int y) const;

	void ToPixels(long& x, long& y) const;
	void ToPixels(int& x, int& y) const;
	void ToPixels(short& x, short& y) const;
	void ToPixels(POINT& point) const;
	void ToPixels(RECT& rect) const;
	void ToPixels(SIZE& size) const;
	void FromPixels(long& x, long& y) const;
	void FromPixels(int& x, int& y) const;
	void FromPixels(short& x, short& y) const;
	void FromPixels(POINT& point) const;
	void FromPixels(RECT& rect) const;
	void FromPixels(SIZE& size) const;

protected:
	SIZE m_dlgBaseUnits;
	HWND m_hDlg;

};

#endif // !defined(AFX_DLGUNITS_H__18921FC5_A659_4AA7_BDF8_EF630D0D13E6__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-ShareAlike 2.5 License


Written By
Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.

Comments and Discussions