📄 toolbarex.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -