childfrm.h
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. // [!output CHILD_FRAME_HEADER] : interface of the [!output CHILD_FRAME_CLASS] class
  2. //
  3. #pragma once
  4. [!if PROJECT_STYLE_EXPLORER]
  5. class [!output VIEW_CLASS];
  6. [!endif]
  7. [!if !DOCVIEW]
  8. #include "[!output WND_VIEW_HEADER]"
  9. [!endif]
  10. class [!output CHILD_FRAME_CLASS] : public [!output CHILD_FRAME_BASE_CLASS]
  11. {
  12. DECLARE_DYNCREATE([!output CHILD_FRAME_CLASS])
  13. public:
  14. [!output CHILD_FRAME_CLASS]();
  15. // Attributes
  16. [!if APP_TYPE_MDI && SPLITTER || PROJECT_STYLE_EXPLORER]
  17. protected:
  18. CSplitterWnd m_wndSplitter;
  19. [!endif]
  20. public:
  21. // Operations
  22. public:
  23. // Overrides
  24. [!if APP_TYPE_MDI && SPLITTER]
  25. public:
  26. [!endif]
  27. [!if PROJECT_STYLE_EXPLORER || !CHILD_FRAME_DEFAULT_STYLES || !DOCVIEW]
  28. public:
  29. [!endif]
  30. [!if APP_TYPE_MDI && SPLITTER]
  31. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  32. [!else]
  33. [!if PROJECT_STYLE_EXPLORER]
  34. virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
  35. [!endif]
  36. [!endif]
  37. [!if MDITABS]
  38. virtual void ActivateFrame(int nCmdShow);
  39. [!endif]
  40. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  41. [!if !DOCVIEW]
  42. virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  43. [!endif]
  44. // Implementation
  45. public:
  46. [!if !DOCVIEW]
  47. // view for the client area of the frame.
  48. [!output WND_VIEW_CLASS] m_wndView;
  49. [!endif]
  50. virtual ~[!output CHILD_FRAME_CLASS]();
  51. #ifdef _DEBUG
  52. virtual void AssertValid() const;
  53. virtual void Dump(CDumpContext& dc) const;
  54. #endif
  55. [!if PROJECT_STYLE_EXPLORER]
  56. protected:
  57. [!output VIEW_CLASS]* GetRightPane();
  58. [!endif]
  59. // Generated message map functions
  60. protected:
  61. [!if !DOCVIEW]
  62. afx_msg void OnFileClose();
  63. afx_msg void OnSetFocus(CWnd* pOldWnd);
  64. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  65. [!endif]
  66. [!if PROJECT_STYLE_EXPLORER]
  67. [!if LIST_VIEW]
  68. afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
  69. afx_msg void OnViewStyle(UINT nCommandID);
  70. [!endif]
  71. [!endif]
  72. DECLARE_MESSAGE_MAP()
  73. };