📄 myheaderctrl.h
字号:
#if !defined(AFX_MYHEADERCTRL_H__6FF62A1C_FC72_4E56_A006_30C3BDFB66A3__INCLUDED_)
#define AFX_MYHEADERCTRL_H__6FF62A1C_FC72_4E56_A006_30C3BDFB66A3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyHeaderCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMyHeaderCtrl window
#include <afxtempl.h>
class CMyHeaderCtrl : public CHeaderCtrl
{
// Construction
public:
CMyHeaderCtrl();
// Attributes
public:
CImageList *m_pImageList;
CMap<int,int,int,int> m_MapImageIndex;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyHeaderCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMyHeaderCtrl();
// Generated message map functions
protected:
void SetItemImage(int nItem,int nImage);
int GetItemImage(int nItem);
CImageList * SetImageList(CImageList *pImageList);
//{{AFX_MSG(CMyHeaderCtrl)
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYHEADERCTRL_H__6FF62A1C_FC72_4E56_A006_30C3BDFB66A3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -