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

📄 mytoolbar.h

📁 模拟windows自带的画板 模拟windows自带的画板 模拟windows自带的画板 模拟windows自带的画板
💻 H
字号:
#if !defined(AFX_MYTOOLBAR_H__39F5C195_786E_458B_885E_0BB60E362EAA__INCLUDED_)
#define AFX_MYTOOLBAR_H__39F5C195_786E_458B_885E_0BB60E362EAA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyToolBar.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyToolBar window
#include "OptionZone.h"

class CMyToolBar : public CToolBar
{
// Construction
public:
	CMyToolBar();

// Attributes
public:
	void SetSelType(SELTYPE type);

// Operations
public:
	int GetPenWidth() const { return m_Option.GetPenWidthSel(); }
	int GetRectType() const { return m_Option.GetRectTypeSel(); }
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyToolBar)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyToolBar();

	// Generated message map functions
protected:
	void SetColumns(UINT nColumns);
	UINT m_nColumns;
	//{{AFX_MSG(CMyToolBar)
	afx_msg void OnNcPaint();
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	COptionZone m_Option;
	CRect m_rcBorder;

};

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

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

#endif // !defined(AFX_MYTOOLBAR_H__39F5C195_786E_458B_885E_0BB60E362EAA__INCLUDED_)

⌨️ 快捷键说明

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