[!if RIBBON_TOOLBAR] // This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface // (the "Fluent UI") and is provided only as referential material to supplement the // Microsoft Foundation Classes Reference and related electronic documentation // included with the MFC C++ library software. // License terms to copy, use or distribute the Fluent UI are available separately. // To learn more about our Fluent UI licensing program, please visit // https://go.microsoft.com/fwlink/?LinkId=238214. // // Copyright (C) Microsoft Corporation // All rights reserved. [!endif] // $childframeheader$ : interface of the $childframeclass$ class // #pragma once [!if PROJECT_STYLE_EXPLORER] class $viewclass$; [!endif] [!if !DOCVIEW] #include "$wndviewheader$" [!endif] class $childframeclass$ : public $childframebaseclass$ { DECLARE_DYNCREATE($childframeclass$) public: $childframeclass$() noexcept; // Attributes [!if APP_TYPE_MDI && SPLITTER || PROJECT_STYLE_EXPLORER] protected: [!if APP_TYPE_TABBED_MDI] CSplitterWndEx m_wndSplitter; [!else] CSplitterWnd m_wndSplitter; [!endif] [!endif] public: // Operations public: // Overrides [!if APP_TYPE_MDI && SPLITTER] public: [!endif] [!if PROJECT_STYLE_EXPLORER || !CHILD_FRAME_DEFAULT_STYLES || !DOCVIEW] public: [!endif] [!if APP_TYPE_MDI && SPLITTER] virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); [!else] [!if PROJECT_STYLE_EXPLORER] virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); [!endif] [!endif] virtual BOOL PreCreateWindow(CREATESTRUCT& cs); [!if !DOCVIEW] virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo); [!endif] // Implementation public: [!if !DOCVIEW] // view for the client area of the frame. $wndviewclass$ m_wndView; [!endif] virtual ~$childframeclass$(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif [!if PROJECT_STYLE_EXPLORER] protected: $viewclass$* GetRightPane(); [!endif] // Generated message map functions protected: [!if !DOCVIEW] afx_msg void OnFileClose(); afx_msg void OnSetFocus(CWnd* pOldWnd); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); [!endif] [!if PROJECT_STYLE_EXPLORER] [!if LIST_VIEW] afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI); afx_msg void OnViewStyle(UINT nCommandID); [!endif] [!endif] [!if PRINTING] [!if RIBBON_TOOLBAR] afx_msg void OnFilePrint(); afx_msg void OnFilePrintPreview(); afx_msg void OnUpdateFilePrintPreview(CCmdUI* pCmdUI); [!endif] [!endif] DECLARE_MESSAGE_MAP() };