42 lines
775 B
C++
42 lines
775 B
C++
#ifndef _INPLACECOMBOBOX_H__
|
|
#define _INPLACECOMBOBOX_H__
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
class CInPlaceComboBox : public CComboBox
|
|
{
|
|
public:
|
|
CInPlaceComboBox();
|
|
CInPlaceComboBox(int iItem, int iSubItem, CString sInitText);
|
|
virtual ~CInPlaceComboBox();
|
|
|
|
public:
|
|
|
|
public:
|
|
//{{AFX_VIRTUAL(CInPlaceComboBox)
|
|
public:
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
//}}AFX_VIRTUAL
|
|
|
|
protected:
|
|
//{{AFX_MSG(CInPlaceComboBox)
|
|
afx_msg void OnNcDestroy();
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
afx_msg void OnSelchange();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
int m_iItem;
|
|
int m_iSubItem;
|
|
CString m_sInitText;
|
|
public:
|
|
int m_nInitFlag;
|
|
afx_msg void OnCbnKillfocus();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
#endif //_INPLACECOMBOBOX_H__
|