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.

1234567891011121314151617181920212223242526272829303132333435
  1. // ListViewControl.h: interface for the ListViewControl class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #ifndef AFX_LISTVIEWCONTROL_H__
  5. #define AFX_LISTVIEWCONTROL_H__
  6. #include <windows.h>
  7. #include "commctrl.h"
  8. namespace rfb {
  9. namespace win32 {
  10. class ListViewControl
  11. {
  12. public:
  13. ListViewControl();
  14. bool IsSelectedLVItem(DWORD idListView, HWND hDlg, int numberItem);
  15. void SelectLVItem(DWORD idListView, HWND hDlg, int numberItem);
  16. BOOL InitLVColumns(DWORD idListView, HWND hDlg, int width, int columns,
  17. TCHAR * title[], DWORD mask, DWORD style, DWORD format);
  18. BOOL InsertLVItem(DWORD idListView, HWND hDlg, int number, TCHAR * texts[],
  19. int columns);
  20. void SetLVItemText(DWORD idListView, HWND hDlg, int numberItem,
  21. int namberColumn, TCHAR * text);
  22. void GetLVItemText(DWORD idListView, HWND hDlg, int numberItem,
  23. int namberColumn, TCHAR * text);
  24. void DeleteLVItem(DWORD idListView, HWND hDlg, int number);
  25. void DeleteAllLVItem(DWORD idListView, HWND hDlg);
  26. virtual ~ListViewControl();
  27. };
  28. };
  29. };
  30. #endif