#if !defined(AFX_ComboBoxLISTCTRL_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_) #define AFX_ComboBoxLISTCTRL_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // ComboBoxListCtrl.h : header file // #define WM_USER_ComboBox_END WM_USER+1001 class CListCtrlComboBox : public CComboBox { // Construction public: CListCtrlComboBox(); // Attributes public: void SetCtrlData(DWORD dwData); DWORD GetCtrlData(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CListCtrlComboBox) public: virtual BOOL PreTranslateMessage(MSG* pMsg); //}}AFX_VIRTUAL // Implementation public: virtual ~CListCtrlComboBox(); // Generated message map functions protected: //{{AFX_MSG(CListCtrlComboBox) afx_msg void OnKillFocus(CWnd* pNewWnd); afx_msg void OnSetFocus(CWnd* pOldWnd); afx_msg void OnCloseup(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: DWORD m_dwData; BOOL m_bExchange; }; ///////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////// class CComboBoxListCtrl : public CListCtrl { // Construction public: CComboBoxListCtrl(); // Attributes public: CArray*m_sparray; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CComboBoxListCtrl) public: virtual BOOL PreTranslateMessage(MSG* pMsg); //}}AFX_VIRTUAL // Implementation public: void InitStyle(); virtual ~CComboBoxListCtrl(); // Generated message map functions protected: //{{AFX_MSG(CComboBoxListCtrl) 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); DECLARE_MESSAGE_MAP() private: void ShowComboBox(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0)); CListCtrlComboBox m_ComboBox; 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_ComboBoxLISTCTRL_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)