PrintFrame.h
上传用户:jzscgs158
上传日期:2022-05-25
资源大小:8709k
文件大小:1k
源码类别:

百货/超市行业

开发平台:

Visual C++

  1. #if !defined(AFX_PRINTFRAME_H__51AF2B0A_B210_4483_94F7_BDCB148AB977__INCLUDED_)
  2. #define AFX_PRINTFRAME_H__51AF2B0A_B210_4483_94F7_BDCB148AB977__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // PrintFrame.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CPrintFrame frame
  10. #define WM_MY_PRINT (WM_USER+1003)
  11. #define WM_BEGIN_PRINTING (WM_USER+1004)
  12. #define WM_END_PRINTING (WM_USER+1005)
  13. #define PRINTMARGIN 2
  14. #include "PrintView.h"
  15. class CPrintFrame : public CFrameWnd
  16. {
  17. DECLARE_DYNCREATE(CPrintFrame)
  18. public:
  19. CPrintFrame();           // protected constructor used by dynamic creation
  20. // Attributes
  21. public:
  22. CPrintView *m_pView;
  23. CDialog *m_pCallerDlg;
  24. CWnd *m_pWnd;
  25. // Operations
  26. public:
  27. // Overrides
  28. // ClassWizard generated virtual function overrides
  29. //{{AFX_VIRTUAL(CPrintFrame)
  30. protected:
  31. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. virtual ~CPrintFrame();
  36. // Generated message map functions
  37. //{{AFX_MSG(CPrintFrame)
  38. afx_msg void OnDestroy();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. };
  42. /////////////////////////////////////////////////////////////////////////////
  43. //{{AFX_INSERT_LOCATION}}
  44. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  45. #endif // !defined(AFX_PRINTFRAME_H__51AF2B0A_B210_4483_94F7_BDCB148AB977__INCLUDED_)