home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c05 / owndraw / mainfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  56 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CMainFrame : public CFrameWnd
  6. {
  7. protected:
  8.     CMainFrame();
  9.     DECLARE_DYNCREATE(CMainFrame)
  10.  
  11. // Attributes
  12. public:
  13.  
  14. // Operations
  15. public:
  16.  
  17. // Overrides
  18.     // ClassWizard generated virtual function overrides
  19.     //{{AFX_VIRTUAL(CMainFrame)
  20.     public:
  21.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  22.     //}}AFX_VIRTUAL
  23.  
  24. // Implementation
  25. public:
  26.     virtual ~CMainFrame();
  27. #ifdef _DEBUG
  28.     virtual void AssertValid() const;
  29.     virtual void Dump(CDumpContext& dc) const;
  30. #endif
  31.  
  32. protected:
  33.     CStatusBar  m_wndStatusBar;
  34.     CToolBar    m_wndToolBar;
  35.  
  36.     CODmenus  m_ownerDrawMenu;
  37.     CBitmapMenu m_bitmapMenu;
  38.  
  39.     void AttachOwnerDrawMenu();
  40.     void AttachBitmapMenu();
  41.     COLORREF IDtoColorRef(int nID);
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CMainFrame)
  46.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  47.         // NOTE - the ClassWizard will add and remove member functions here.
  48.         //    DO NOT EDIT what you see in these blocks of generated code!
  49.     //}}AFX_MSG
  50.     afx_msg void OnColors(UINT nID);
  51.     afx_msg void OnUpdateColors(CCmdUI *pCmdUI);
  52.     DECLARE_MESSAGE_MAP()
  53. };
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.