📄 mttoolbar.h
字号:
#if !defined(AFX_MTTOOLBAR_H__AEC7FFE5_4D43_4BE1_87B3_F978E735FD56__INCLUDED_)
#define AFX_MTTOOLBAR_H__AEC7FFE5_4D43_4BE1_87B3_F978E735FD56__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MTToolBar.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMTToolBar 可以显示多行文字的 ToolBar 类
// 编写: ahr
// 日期:2003.4.7
/////////////////////////////////////////////////////////////////////////////
// CMTToolBar window
class CMTToolBar : public CToolBar
{
// Construction
public:
CMTToolBar();
// 显示工具条文字
ShowText(UINT nIDResource);
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMTToolBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMTToolBar();
// Generated message map functions
protected:
//{{AFX_MSG(CMTToolBar)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
// 工具条资源结构文件
struct CToolBarData
{
WORD wVersion;
WORD wWidth;
WORD wHeight;
WORD wItemCount;
//WORD aItems[wItemCount]
WORD* items()
{ return (WORD*)(this+1); }
};
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MTTOOLBAR_H__AEC7FFE5_4D43_4BE1_87B3_F978E735FD56__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -