?? colortoolbar.h
字號(hào):
/************************************************************************
* 文件名: ColorToolBar.h
* 文件描述: 真彩色的工具欄
* 創(chuàng)建人: 程紅秀, 2005年01月05日
* 版本號(hào): 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; //模板數(shù)組類
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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -