⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 这是书上的代码
💻 H
字号:
// MainFrm.h : CMainFrame 类的接口
//
#include "afxext.h"


#pragma once

class CViewerView;
class CViewerDoc;
class CWebView;

class CMainFrame : public CFrameWnd
{
	
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// 属性
public:

// 操作
public:

// 重写
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// 实现
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	CStatusBar  m_wndStatusBar;
protected:  // 控件条嵌入成员
	CToolBar    m_wndToolBar;

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
public:
	CToolBar m_wndFormatBar;
	BOOL m_bViewFormat;
	afx_msg void OnViewFormat();
	afx_msg void OnUpdateViewFormat(CCmdUI *pCmdUI);
	afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/);
	void SwitchToView1(int nView);
	afx_msg void OnViewText();
	afx_msg void OnUpdateViewText(CCmdUI *pCmdUI);
	afx_msg void OnViewHtml();
	afx_msg void OnUpdateViewHtml(CCmdUI *pCmdUI);
	int m_nViewID;
	void SwitchToView2(int nView);
	CViewerView* m_pMainView;
	CWebView* m_pWebView;
};


⌨️ 快捷键说明

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