Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
801 B

  1. #ifndef _PGSETUP_H_
  2. #define _PGSETUP_H_
  3. /***************************************************************************/
  4. class CPageSetupData
  5. {
  6. public:
  7. VOID UpdateControls(HWND hDlg);
  8. static VOID UpdateValue(HWND hDlg, int nIDDlgItem, UINT *pnResult);
  9. VOID CalculateImageRect(const CSize &PhysicalPageSize, CPoint &PhysicalOrigin, CSize &PhysicalImageSize);
  10. static UINT_PTR APIENTRY PageSetupHook(HWND, UINT, WPARAM, LPARAM);
  11. static UINT_PTR APIENTRY PagePaintHook(HWND, UINT, WPARAM, LPARAM);
  12. public:
  13. BOOL bCenterHorizontally;
  14. BOOL bCenterVertically;
  15. BOOL bScaleFitTo;
  16. UINT nAdjustToPercent;
  17. UINT nFitToPagesWide;
  18. UINT nFitToPagesTall;
  19. double fPhysicalImageWidth;
  20. double fPhysicalImageHeight;
  21. };
  22. #endif //_PGSETUP_H_