windows-nt/Source/XPSP1/NT/shell/osshell/accesory/mspaint/pgsetup.h

29 lines
773 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _PGSETUP_H_
#define _PGSETUP_H_
/***************************************************************************/
class CPageSetupData
{
public:
VOID UpdateControls(HWND hDlg);
static VOID UpdateValue(HWND hDlg, int nIDDlgItem, UINT *pnResult);
VOID CalculateImageRect(const CSize &PhysicalPageSize, CPoint &PhysicalOrigin, CSize &PhysicalImageSize);
static UINT_PTR APIENTRY PageSetupHook(HWND, UINT, WPARAM, LPARAM);
static UINT_PTR APIENTRY PagePaintHook(HWND, UINT, WPARAM, LPARAM);
public:
BOOL bCenterHorizontally;
BOOL bCenterVertically;
BOOL bScaleFitTo;
UINT nAdjustToPercent;
UINT nFitToPagesWide;
UINT nFitToPagesTall;
double fPhysicalImageWidth;
double fPhysicalImageHeight;
};
#endif //_PGSETUP_H_