#if !defined(AFX_ComboBoxLISTCTRL6_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_) #define AFX_ComboBoxLISTCTRL6_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 #include "TreeComboBox2.h" #include "ComboListCtrl5.h" #include "EditListCtrl.h" class CListCtrlComboBox6 : public CComboBox { // Construction public: CListCtrlComboBox6(); // Attributes public: void SetCtrlData(DWORD dwData); DWORD GetCtrlData(); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CListCtrlComboBox6) public: virtual BOOL PreTranslateMessage(MSG* pMsg); //}}AFX_VIRTUAL // Implementation public: virtual ~CListCtrlComboBox6(); // Generated message map functions protected: //{{AFX_MSG(CListCtrlComboBox6) 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 CComboBoxListCtrl6 : public CListCtrl { CSortHeaderCtrl2 m_ctlHeader; // Construction public: CComboBoxListCtrl6(); // Attributes public: CListCtrlComboBox6 m_ComboBox; CListCtrlComboBox6 m_ComboBox2; CTreeComboBox2 *m_pComboBox; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CComboBoxListCtrl6) public: virtual BOOL PreTranslateMessage(MSG* pMsg); virtual void PreSubclassWindow(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); //}}AFX_VIRTUAL // Implementation public: void InitStyle(); virtual ~CComboBoxListCtrl6(); // Generated message map functions protected: //{{AFX_MSG(CComboBoxListCtrl6) afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnParentNotify(UINT message, LPARAM lParam); afx_msg void OnCustomdrawList(NMHDR*, LRESULT*); //}}AFX_MSG #ifdef VC60 afx_msg void OnComboBoxEnd(WPARAM ,LPARAM lParam = FALSE); afx_msg void OnEditEnd(WPARAM ,LPARAM lParam = FALSE); #else afx_msg LRESULT OnComboBoxEnd(WPARAM ,LPARAM lParam = FALSE); afx_msg LRESULT OnEditEnd(WPARAM ,LPARAM lParam = FALSE); #endif 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)); void ShowComboBox2(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0)); void ShowComboBox3(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0)); void ShowDateCtrl(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0)); CMyDateTimeCtrl m_DateCtrl; 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_ComboBoxLISTCTRL6_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)