|
// 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.
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.