mainfrm.h

来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C头文件 代码 · 共 76 行

H
76
字号
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__80FF0540_3B79_44F0_B010_7D2D11EC4F5D__INCLUDED_)
#define AFX_MAINFRM_H__80FF0540_3B79_44F0_B010_7D2D11EC4F5D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)	
	//}}AFX_VIRTUAL

// Implementation
public:

	int CreateControlBar();
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	CMainData m_mainData ;
protected:  // control bar embedded members
	CStatusBar		m_wndStatusBar;
	CToolBar		m_wndToolBar;
	CReBar m_wndReBar;//工具栏容器

	bool			m_bShowMainToolBar ;
	CTreeToolBar	m_wndTreeBar ;

// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClassTreeItemChanged(WPARAM wParam, LPARAM lParam);
	afx_msg void OnSetCurLinkformat();
	afx_msg void OnUpdateViewMainToolbar(CCmdUI* pCmdUI);
	afx_msg void OnEditArticleView();
	afx_msg void OnViewExport();
	afx_msg void OnViewMainToolbar();
	afx_msg void OnUpdateViewExport(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewEditArticle(CCmdUI* pCmdUI);
	afx_msg void OnInitMenu(CMenu* pMenu);
	afx_msg void OnViewExportHtml();
	afx_msg void OnUpdateViewExportHtml(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool ShowTemplate(CMultiDocTemplate * pTemplate ,CRuntimeClass * pChildFrameClass);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__80FF0540_3B79_44F0_B010_7D2D11EC4F5D__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?