MainFrm.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__5EEFA8FB_0FE9_4273_9A5C_D74F6E4AAA91__INCLUDED_)
  5. #define AFX_MAINFRM_H__5EEFA8FB_0FE9_4273_9A5C_D74F6E4AAA91__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "HColorBar.h"
  10. #include "HWidthBar.h"
  11. #define WM_ICONALT WM_USER + 1
  12. class CMainFrame : public CFrameWnd
  13. {
  14. protected: // create from serialization only
  15. CMainFrame();
  16. DECLARE_DYNCREATE(CMainFrame)
  17. // Attributes
  18. public:
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CMainFrame)
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. //}}AFX_VIRTUAL
  26. // Implementation
  27. public:
  28. virtual ~CMainFrame();
  29. #ifdef _DEBUG
  30. virtual void AssertValid() const;
  31. virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33. protected: // control bar embedded members
  34. CStatusBar m_wndStatusBar;
  35. CToolBar m_wndToolBar;
  36. CToolBar* m_colorBar;
  37. // Generated message map functions
  38. protected:
  39. HICON m_icons[5];
  40. CToolBar m_picBar;
  41. //{{AFX_MSG(CMainFrame)
  42. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  43. afx_msg void OnViewPics();
  44. afx_msg void OnUpdateViewPics(CCmdUI* pCmdUI);
  45. afx_msg void OnViewColor();
  46. afx_msg void OnUpdateViewColor(CCmdUI* pCmdUI);
  47. afx_msg void OnTimer(UINT nIDEvent);
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. afx_msg LRESULT OnOtherViewActive(WPARAM wParam,LPARAM lParam);
  51. };
  52. /////////////////////////////////////////////////////////////////////////////
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55. #endif // !defined(AFX_MAINFRM_H__5EEFA8FB_0FE9_4273_9A5C_D74F6E4AAA91__INCLUDED_)