123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- #if !defined(AFX_INPLACELIST_H__ECD42822_16DF_11D1_992F_895E185F9C72__INCLUDED_)
- #define AFX_INPLACELIST_H__ECD42822_16DF_11D1_992F_895E185F9C72__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif
- #define IDC_COMBOEDIT 1001
- class CComboEdit : public CEdit
- {
- public:
- CComboEdit();
- public:
- public:
-
-
- virtual BOOL PreTranslateMessage(MSG* pMsg);
-
- public:
- virtual ~CComboEdit();
-
- protected:
-
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
-
- DECLARE_MESSAGE_MAP()
- };
- class CInPlaceList : public CComboBox
- {
- friend class CComboEdit;
- public:
- CInPlaceList(CWnd* pParent,
- CRect& rect,
- DWORD dwStyle,
- UINT nID,
- int nRow, int nColumn,
- CStringArray& Items,
- CString sInitText,
- UINT nFirstChar);
- public:
- CComboEdit m_edit;
- public:
-
-
- protected:
- virtual void PostNcDestroy();
-
- public:
- virtual ~CInPlaceList();
- protected:
- void EndEdit();
- protected:
-
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
-
- DECLARE_MESSAGE_MAP()
- private:
- int m_nNumLines;
- CString m_sInitText;
- int m_nRow;
- int m_nCol;
- UINT m_nLastChar;
- BOOL m_bExitOnArrows;
- };
- #endif
|