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

📄 mainfrm.h

📁 在mfc环境下实现的绘图板程序
💻 H
字号:
// MainFrm.h : CMainFrame 类的接口
#include "ColorPaletteBar.h"
#include "ToolPaletteBar.h"

#pragma once

class CMainFrame : public CFrameWnd
{
	
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)
	//列表的字体,大小不能超过列表项的高度
	CFont m_ftList;
// 属性
public:
	UINT	m_indexPenStyle, m_indexLineStyle, m_indexShapeStyle, m_indexZoom;
// 操作
public:
	void ShowMousePos(CPoint pt);
	void ShowZoomInfo(float fZoom);
	void OnChangeTool(UINT index);
// 重写
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

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

public:  
	
	CStatusBar			m_wndStatusBar;
	CToolPaletteBar		m_wndToolPaletteBar;
	CColorPaletteBar	m_wndColorBar;
	CImageList			m_ctlImage;
protected:
	BOOL CreateToolPaletteBar();
	BOOL CreateColorPaletteBar();
	BOOL CreateStatusBar();
// 生成的消息映射函数
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()
	afx_msg void OnNMCustomDraw(NMHDR *pNMHDR, LRESULT *pResult);	
};


⌨️ 快捷键说明

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