📄 itemcombobox.h
字号:
#pragma once
// CItemComboBox
class CItemComboBox : public CComboBox
{
DECLARE_DYNAMIC(CItemComboBox)
public:
CItemComboBox();
CItemComboBox(CListCtrl *pList, int nItem, int nSubItem, CMapStringToString *pMapStr = NULL, int nCurSel = -1);// nCurSel = -1: find the last key whose value matches the currrent text
void SetListCtrl(CListCtrl *pList, int nItem, int nSubItem);
void SetStringMap(CMapStringToString &mapStr, int nCurSel = -1);
virtual BOOL Create();
virtual ~CItemComboBox();
protected:
int m_nItem;
int m_nSubItem;
CListCtrl *m_pList;
CMapStringToString m_mapStr;
CFont m_font;
DECLARE_MESSAGE_MAP()
afx_msg void OnKillFocus(CWnd* pNewWnd);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -