itemcombobox.h
来自「用Visual c++.net开发的图书管理系统」· C头文件 代码 · 共 27 行
H
27 行
#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 + =
减小字号Ctrl + -
显示快捷键?