PrintPreview.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 // _MSC_VER > 1000
  6. // PrintPreview.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // PrintPreview dialog
  10. class PrintPreview : public CDialog
  11. {
  12. CPoint m_startpt;
  13. CRect m_rc;
  14. // Construction
  15. public:
  16. int m_w;
  17. int m_h;
  18. PrintPreview(CWnd* pParent = NULL); // standard constructor
  19. CDC *m_pDC;
  20. // Dialog Data
  21. //{{AFX_DATA(PrintPreview)
  22. enum { IDD = IDD_DLGprintpreview };
  23. // NOTE: the ClassWizard will add data members here
  24. //}}AFX_DATA
  25. // Overrides
  26. // ClassWizard generated virtual function overrides
  27. //{{AFX_VIRTUAL(PrintPreview)
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. //}}AFX_VIRTUAL
  31. // Implementation
  32. protected:
  33. // Generated message map functions
  34. //{{AFX_MSG(PrintPreview)
  35. virtual void OnOK();
  36. virtual void OnCancel();
  37. afx_msg void OnClose();
  38. virtual BOOL OnInitDialog();
  39. afx_msg void OnPaint();
  40. afx_msg void OnButton1();
  41. afx_msg void OnButton2();
  42. afx_msg void OnButton3();
  43. afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  44. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  45. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  46. afx_msg void OnButton4();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. };
  50. //{{AFX_INSERT_LOCATION}}
  51. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  52. #endif // !defined(AFX_PRINTPREVIEW_H__461B35DD_EF8C_4D14_B423_45C05BEF6803__INCLUDED_)