ComboListCtrl6.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #if !defined(AFX_ComboBoxLISTCTRL6_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)
  2. #define AFX_ComboBoxLISTCTRL6_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ComboBoxListCtrl.h : header file
  7. //
  8. #define WM_USER_ComboBox_END WM_USER+1001
  9. #include "TreeComboBox2.h"
  10. #include "ComboListCtrl5.h"
  11. #include "EditListCtrl.h"
  12. class CListCtrlComboBox6 : public CComboBox
  13. {
  14. // Construction
  15. public:
  16. CListCtrlComboBox6();
  17. // Attributes
  18. public:
  19. void SetCtrlData(DWORD dwData);
  20. DWORD GetCtrlData();
  21. // Operations
  22. public:
  23. // Overrides
  24. // ClassWizard generated virtual function overrides
  25. //{{AFX_VIRTUAL(CListCtrlComboBox6)
  26. public:
  27. virtual BOOL PreTranslateMessage(MSG* pMsg);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. virtual ~CListCtrlComboBox6();
  32. // Generated message map functions
  33. protected:
  34. //{{AFX_MSG(CListCtrlComboBox6)
  35. afx_msg void OnKillFocus(CWnd* pNewWnd);
  36. afx_msg void OnSetFocus(CWnd* pOldWnd);
  37. afx_msg void OnCloseup();
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. private:
  41. DWORD m_dwData;
  42. BOOL m_bExchange;
  43. };
  44. class CComboBoxListCtrl6 : public CListCtrl
  45. {
  46. CSortHeaderCtrl2 m_ctlHeader;
  47. // Construction
  48. public:
  49. CComboBoxListCtrl6();
  50. // Attributes
  51. public:
  52. CListCtrlComboBox6 m_ComboBox;
  53. CListCtrlComboBox6 m_ComboBox2;
  54. CTreeComboBox2 *m_pComboBox;
  55. // Operations
  56. public:
  57. // Overrides
  58. // ClassWizard generated virtual function overrides
  59. //{{AFX_VIRTUAL(CComboBoxListCtrl6)
  60. public:
  61. virtual BOOL PreTranslateMessage(MSG* pMsg);
  62. virtual void PreSubclassWindow();
  63. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  64. //}}AFX_VIRTUAL
  65. // Implementation
  66. public:
  67. void InitStyle();
  68. virtual ~CComboBoxListCtrl6();
  69. // Generated message map functions
  70. protected:
  71. //{{AFX_MSG(CComboBoxListCtrl6)
  72. afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
  73. afx_msg void OnParentNotify(UINT message, LPARAM lParam);
  74. afx_msg void OnCustomdrawList(NMHDR*, LRESULT*);
  75. //}}AFX_MSG
  76. #ifdef VC60
  77. afx_msg void OnComboBoxEnd(WPARAM ,LPARAM lParam = FALSE);
  78. afx_msg void OnEditEnd(WPARAM ,LPARAM lParam = FALSE);
  79. #else
  80. afx_msg LRESULT OnComboBoxEnd(WPARAM ,LPARAM lParam = FALSE);
  81. afx_msg LRESULT OnEditEnd(WPARAM ,LPARAM lParam = FALSE);
  82. #endif
  83. DECLARE_MESSAGE_MAP()
  84. private:
  85. void ShowEdit(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
  86. void ShowComboBox(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
  87. void ShowComboBox2(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
  88. void ShowComboBox3(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
  89. void ShowDateCtrl(BOOL bShow,int nItem,int nIndex,CRect rc = CRect(0,0,0,0));
  90. CMyDateTimeCtrl m_DateCtrl;
  91. CListCtrlEdit m_edit;
  92. int m_nItem;
  93. int m_nSub;
  94. BOOL Key_Shift(int& nItem,int& nSub);
  95. BOOL Key_Ctrl(int& nItem,int &nSub);
  96. };
  97. //////////////////////////////////////////////////////////////////////////
  98. //////////////////////////////////////////////////////////////////////////
  99. //////////////////////////////////////////////////////////////////////////
  100. //////////////////////////////////////////////////////////////////////////
  101. /////////////////////////////////////////////////////////////////////////////
  102. //{{AFX_INSERT_LOCATION}}
  103. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  104. #endif // !defined(AFX_ComboBoxLISTCTRL6_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)