CheckBoxListCtrl.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #if !defined(AFX_CheckBoxListCtrl_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)
  2. #define AFX_CheckBoxListCtrl_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // CheckBoxListCtrl.h : header file
  7. class CCheckBoxListCtrl : public CListCtrl
  8. {
  9. CArray<CButton*, CButton*>m_pCheckArray;
  10. // Construction
  11. public:
  12. CCheckBoxListCtrl();
  13. // Attributes
  14. public:
  15. // Operations
  16. public:
  17. // Overrides
  18. // ClassWizard generated virtual function overrides
  19. //{{AFX_VIRTUAL(CCheckBoxListCtrl)
  20. //}}AFX_VIRTUAL
  21. // Implementation
  22. public:
  23. void CheckAll(BOOL bCheck);
  24. BOOL GetItemCheck(int iItem, int pos);
  25. void AddCheckBox(int iItem, int pos, BOOL bCheck);
  26. void InitStyle();
  27. virtual ~CCheckBoxListCtrl();
  28. // Generated message map functions
  29. protected:
  30. //{{AFX_MSG(CCheckBoxListCtrl)
  31. afx_msg void OnTimer(UINT nIDEvent);
  32. afx_msg void OnDestroy();
  33. //}}AFX_MSG
  34. DECLARE_MESSAGE_MAP()
  35. };
  36. //////////////////////////////////////////////////////////////////////////
  37. //////////////////////////////////////////////////////////////////////////
  38. //////////////////////////////////////////////////////////////////////////
  39. //////////////////////////////////////////////////////////////////////////
  40. /////////////////////////////////////////////////////////////////////////////
  41. //{{AFX_INSERT_LOCATION}}
  42. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  43. #endif // !defined(AFX_CheckBoxListCtrl_H__B26FE6EC_7377_4DA6_BEC1_E3C656DACFB8__INCLUDED_)