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

📄 draw.h

📁 Visual C++_ 600 编程学习捷径
💻 H
字号:
// draw.h : main header file for the DRAW application
//

#if !defined(AFX_DRAW_H__CA9C490C_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_)
#define AFX_DRAW_H__CA9C490C_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CDrawApp:
// See draw.cpp for the implementation of this class
//

class CDrawApp : public CWinApp
{
public:
	COLORREF m_FillColor; //填充色
	COLORREF m_PenColor;  //画笔颜色
	int m_CurrentPenThickness;//画笔宽度
	int m_CurrentLineStyle;   //画笔样式
	UINT m_CurrentTool;       //当前绘图方式

//	UINT m_PenThicknessCmd;

	CDrawApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDrawApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CDrawApp)
	afx_msg void OnAppAbout();
	afx_msg void OnDrawFillcolor();
	afx_msg void OnDrawSelect();
	afx_msg void OnDrawLine();
	afx_msg void OnUpdateDrawLine(CCmdUI* pCmdUI);
	afx_msg void OnDrawRect();
	afx_msg void OnUpdateDrawRect(CCmdUI* pCmdUI);
	afx_msg void OnDrawRectfill();
	afx_msg void OnUpdateDrawRectfill(CCmdUI* pCmdUI);
	afx_msg void OnDrawRectround();
	afx_msg void OnUpdateDrawRectround(CCmdUI* pCmdUI);
	afx_msg void OnDrawRectroundfill();
	afx_msg void OnUpdateDrawRectroundfill(CCmdUI* pCmdUI);
	afx_msg void OnDrawEllipse();
	afx_msg void OnUpdateDrawEllipse(CCmdUI* pCmdUI);
	afx_msg void OnDrawCircle();
	afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
	afx_msg void OnDrawCirclefill();
	afx_msg void OnUpdateDrawCirclefill(CCmdUI* pCmdUI);
	afx_msg void OnDrawEllipsefill();
	afx_msg void OnUpdateDrawEllipsefill(CCmdUI* pCmdUI);
	afx_msg void OnDrawWord();
	afx_msg void OnUpdateDrawWord(CCmdUI* pCmdUI);
	afx_msg void OnDrawPencolor();
	afx_msg void OnDrawPenWidth();
	afx_msg void OnUpdateDrawSelect(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_DRAW_H__CA9C490C_07B2_11D4_B0C9_5254AB167DFC__INCLUDED_)

⌨️ 快捷键说明

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