123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- #if !defined(AFX_ComboBoxLISTCTRL2_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)
- #define AFX_ComboBoxLISTCTRL2_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ComboBoxListCtrl.h : header file
- //
- #include "EditListCtrl.h"
- #define WM_USER_ComboBox_END WM_USER+1003
- class CListCtrlComboBox2 : public CComboBox
- {
- // Construction
- public:
- CListCtrlComboBox2();
- // Attributes
- public:
- void SetCtrlData(DWORD dwData);
- DWORD GetCtrlData();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CListCtrlComboBox2)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CListCtrlComboBox2();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CListCtrlComboBox2)
- afx_msg void OnKillFocus(CWnd* pNewWnd);
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- DWORD m_dwData;
- BOOL m_bExchange;
- };
- /////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- class CComboBoxListCtrl2 : public CListCtrl
- {
- // Construction
- public:
- CComboBoxListCtrl2();
- // Attributes
- public:
-
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CComboBoxListCtrl2)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void InitStyle();
- virtual ~CComboBoxListCtrl2();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CComboBoxListCtrl2)
- afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
- afx_msg void OnParentNotify(UINT message, LPARAM lParam);
- //}}AFX_MSG
- afx_msg void OnComboBoxEnd(WPARAM ,LPARAM lParam = FALSE);
- afx_msg void OnEditEnd(WPARAM ,LPARAM lParam = FALSE);
- DECLARE_MESSAGE_MAP()
- private:
- void ShowEdit(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
- void ShowComboBox(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
- CListCtrlComboBox2 m_ComboBox;
- CListCtrlEdit m_edit;
- int m_nItem;
- int m_nSub;
- BOOL Key_Shift(int& nItem,int& nSub);
- BOOL Key_Ctrl(int& nItem,int &nSub);
- };
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_ComboBoxLISTCTRL2_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)
|