mytoolbar.h
来自「一个画笔的程序,可以进行直线,圆和方形等图形进行画图,并可以撤消上一步的动作」· C头文件 代码 · 共 60 行
H
60 行
#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 + =
减小字号Ctrl + -
显示快捷键?