Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. listview.h
  7. Listview control
  8. FILE HISTORY:
  9. */
  10. #ifndef _LISTVIEW_H
  11. #define _LISTVIEW_H
  12. #define LISTVIEWEX_NOT_CHECKED 1
  13. #define LISTVIEWEX_CHECKED 2
  14. #if _MSC_VER >= 1000
  15. #pragma once
  16. #endif // _MSC_VER >= 1000
  17. class CListCtrlExt : public CListCtrl
  18. {
  19. DECLARE_DYNCREATE(CListCtrlExt)
  20. // Construction
  21. public:
  22. CListCtrlExt();
  23. // Attributes
  24. protected:
  25. BOOL m_bFullRowSel;
  26. public:
  27. BOOL SetFullRowSel(BOOL bFillRowSel);
  28. BOOL GetFullRowSel();
  29. int AddItem(LPCTSTR pText, int nRow);
  30. BOOL SelectItem(int nItemIndex);
  31. BOOL IsSelected(int nItemIndex);
  32. BOOL CheckItem(int nItemIndex);
  33. BOOL SetCheck(int nItemIndex, BOOL fCheck);
  34. UINT GetCheck(int nItemIndex);
  35. int GetSelectedItem();
  36. // Overrides
  37. protected:
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(CListCtrlExt)
  40. public:
  41. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. public:
  45. virtual ~CListCtrlExt();
  46. // Generated message map functions
  47. protected:
  48. //{{AFX_MSG(CListCtrlExt)
  49. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  50. afx_msg VOID OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. };
  54. /////////////////////////////////////////////////////////////////////////////
  55. #endif _LISTVIEW_H