📄 colortoolbar.h
字号:
/************************************************************************
* 文件名: ColorToolBar.h
* 文件描述: 真彩色的工具栏
* 创建人: 程红秀, 2005年01月05日
* 版本号: 1.0
************************************************************************/
#ifndef ColorToolBar_h
#define ColorToolBar_h
#if _MSC_VER > 1000
#pragma once
#endif
#include <afxtempl.h>
/************************************************************************/
class CColorToolBar : public CToolBar
{
public:
CColorToolBar();
BOOL SetColorToolBar(int nBtnWidth, UINT uBmpNormal, UINT uBmpHot, UINT uBmpDisable);
void SetDropButton(CWnd* pParent, UINT uButtonID, UINT uMenuID);
protected:
struct DROP_INFO
{
UINT uButtonID;
UINT uMenuID;
CWnd* pParent;
};
CArray <DROP_INFO, DROP_INFO&> m_DropInfoArray; //模板数组类
BOOL m_bIsDropBtn; //用于判断是否是下拉按扭
BOOL SetImage(UINT ImageType,UINT uToolBar,int nBtnWidth);
//{{AFX_MSG(CColorToolBar)
afx_msg void OnToolbarDropDown(NMTOOLBAR* pnmh, LRESULT* plRes);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/************************************************************************/
//{{AFX_INSERT_LOCATION}}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -