MainFrm.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:2k
源码类别:

界面编程

开发平台:

Visual C++

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MAINFRM_H__8AD8EDA0_FE43_4657_B159_597A63DD8A98__INCLUDED_)
  5. #define AFX_MAINFRM_H__8AD8EDA0_FE43_4657_B159_597A63DD8A98__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ChildView.h"
  10. #if (!defined __EXT_TEMPL_H)
  11. #include <ExtTempl.h>
  12. #endif
  13. #include "ExtPopupRichEditCtrl.h"
  14. class CMainFrame : public CExtNCW < CFrameWnd >
  15. {
  16. public:
  17. CMainFrame();
  18. protected: 
  19. DECLARE_DYNAMIC(CMainFrame)
  20. // Attributes
  21. public:
  22. CExtPopupRichEditView m_wndPopupRichEditView;
  23. private:
  24. // window placement persistence
  25. WINDOWPLACEMENT m_dataFrameWP;
  26. // Operations
  27. public:
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CMainFrame)
  31. public:
  32. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  34. virtual BOOL PreTranslateMessage(MSG* pMsg);
  35. virtual BOOL DestroyWindow();
  36. virtual void ActivateFrame(int nCmdShow = -1);
  37. //}}AFX_VIRTUAL
  38. // Implementation
  39. public:
  40. virtual ~CMainFrame();
  41. virtual void RecalcLayout(BOOL bNotify = TRUE);
  42. #ifdef _DEBUG
  43. virtual void AssertValid() const;
  44. virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46. protected:  // control bar embedded members
  47. CExtStatusControlBar  m_wndStatusBar;
  48. CExtMenuControlBar    m_wndMenuBar;
  49. CExtToolControlBar    m_wndToolBar;
  50. CExtThemeSwitcherToolControlBar  m_wndToolBarUiLook;
  51. CChildView *          m_pWndView;
  52. // Generated message map functions
  53. protected:
  54. //{{AFX_MSG(CMainFrame)
  55. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  56. afx_msg void OnSetFocus(CWnd *pOldWnd);
  57. //}}AFX_MSG
  58. afx_msg LRESULT OnItemCoveringNotification( WPARAM wParam, LPARAM lParam );
  59. afx_msg LRESULT OnPrepareMenu( WPARAM wParam, LPARAM lParam );
  60. afx_msg LRESULT OnAnyDeactivatePopup( WPARAM wParam, LPARAM lParam );
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. /////////////////////////////////////////////////////////////////////////////
  64. //{{AFX_INSERT_LOCATION}}
  65. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  66. #endif // !defined(AFX_MAINFRM_H__8AD8EDA0_FE43_4657_B159_597A63DD8A98__INCLUDED_)