toolbarex.h
来自「《Visual C++编程技巧典型案例解析:基础与应用篇(下)(含1CD-ROM」· C头文件 代码 · 共 57 行
H
57 行
#if !defined(AFX_TOOLBAREX_H__F77578E4_9B4B_4BA7_9411_B6427A7A4670__INCLUDED_)
#define AFX_TOOLBAREX_H__F77578E4_9B4B_4BA7_9411_B6427A7A4670__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ToolBarEx.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CToolBarEx window
class CToolBarEx : public CToolBar
{
// Construction
public:
CToolBarEx();
virtual BOOL LoadToolBar(UINT nIDResource);
// Implementation
public:
virtual ~CToolBarEx();
protected:
//ToolBar上的Button个数
int m_nSavedCount;
//用于保存每个按钮的信息
TBBUTTON* m_pSavedButtons;
// overrides
virtual void GetButtons(int& nSavedCount, TBBUTTON*& pSavedButtons);
virtual void SetButtons(int nSavedCount, TBBUTTON* pSavedButtons);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//{{AFX_MSG(CToolBarEx)
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnCustomize();
afx_msg void OnBeginAdjust(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndAdjust(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnGetButtonInfo(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnQueryDelete(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnQueryInsert(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReset(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnToolBarChange(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TOOLBAREX_H__F77578E4_9B4B_4BA7_9411_B6427A7A4670__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?