PrintPreview.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #if !defined(AFX_PRINTPREVIEW_H__461B35DD_EF8C_4D14_B423_45C05BEF6803__INCLUDED_)
  2. #define AFX_PRINTPREVIEW_H__461B35DD_EF8C_4D14_B423_45C05BEF6803__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif
  6. class PrintPreview : public CDialog
  7. {
  8. CPoint m_startpt;
  9. CRect m_rc;
  10. public:
  11. int m_ncopies;
  12. int m_mode;
  13. CString m_name;
  14. int m_w;
  15. int m_h;
  16. PrintPreview(CWnd* pParent = NULL); // standard constructor
  17. CDC *m_pDC;
  18. enum { IDD = IDD_DLGprintpreview };
  19. CSpinButtonCtrl m_spin;
  20. int m_radio1;
  21. UINT m_num;
  22. protected:
  23. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  24. protected:
  25. virtual void OnOK();
  26. virtual void OnCancel();
  27. afx_msg void OnClose();
  28. virtual BOOL OnInitDialog();
  29. afx_msg void OnPaint();
  30. afx_msg void OnButton1();
  31. afx_msg void OnButton2();
  32. afx_msg void OnButton3();
  33. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  34. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  35. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  36. afx_msg void OnButton4();
  37. afx_msg void OnButton5();
  38. afx_msg void OnRadio1();
  39. afx_msg void OnRadio2();
  40. afx_msg void OnRadio3();
  41. afx_msg void OnRadio4();
  42. DECLARE_MESSAGE_MAP()
  43. };
  44. #endif