CTrueColorToolBar 类

时间:2017-06-24 09:08:12
【文件属性】:

文件名称:CTrueColorToolBar 类

文件大小:3KB

文件格式:ZIP

更新时间:2017-06-24 09:08:12

创建 ToolBar 的类

class CTrueColorToolBar : public CToolBar { // Construction public: CTrueColorToolBar(); // Attributes private: BOOL m_bDropDown; struct stDropDownInfo { public: UINT uButtonID; UINT uMenuID; CWnd* pParent; }; CArray m_lstDropDownButton; // Operations public: BOOL LoadTrueColorToolBar(int nBtnWidth, UINT uToolBar, UINT uToolBarHot = 0, UINT uToolBarDisabled = 0); void AddDropDownButton(CWnd* pParent, UINT uButtonID, UINT uMenuID); private: BOOL SetTrueColorToolBar(UINT uToolBarType, UINT uToolBar, int nBtnWidth); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTrueColorToolBar) //}}AFX_VIRTUAL // Implementation public: virtual ~CTrueColorToolBar(); // Generated message map functions protected: //{{AFX_MSG(CTrueColorToolBar) afx_msg void OnToolbarDropDown(NMHDR * pnmh, LRESULT* plRes); //}}AFX_MSG DECLARE_MESSAGE_MAP() };


网友评论