mainfrm.h

来自「EasyDraw是一个简单的绘图软件」· C头文件 代码 · 共 59 行

H
59
字号
// MainFrm.h : CMainFrame 类的接口
//


#pragma once

#include "DrawToolDlg.h"

class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	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

protected:  // 控件条嵌入成员
	CStatusBar  m_wndStatusBar;
	CToolBar    m_wndToolBar;
	CDrawToolDlg*	m_pDrawTool;	// 绘图工具箱指针

// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnViewDrawtools();
	afx_msg void OnUpdateViewDrawtools(CCmdUI *pCmdUI);

	//--------------------------------------------------------------------------
	//	作用:		获取绘图工具箱对象的指针
	//	返回值:		绘图工具箱对象的指针
	//	备注:		静态函数
	//--------------------------------------------------------------------------
	static CDrawToolDlg* GetDrawTool()
	{
		CMainFrame* pMain = (CMainFrame*)AfxGetMainWnd();
		return pMain->m_pDrawTool;
	}
};


⌨️ 快捷键说明

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