?? mytoolbar.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 + -