1 #pragma once 2 3 #include "Window.h" 4 5 namespace Framework 6 { 7 namespace Win32 8 { 9 class CListBox : public CWindow 10 { 11 public: 12 CListBox(HWND = 0); 13 CListBox(HWND, const RECT&, unsigned long = 0, unsigned long = WS_EX_CLIENTEDGE); 14 15 CListBox& operator =(CListBox&&); 16 17 unsigned int AddString(const TCHAR*); 18 void ResetContent(); 19 20 int GetCurrentSelection(); 21 void SetCurrentSelection(unsigned int); 22 23 INT_PTR GetItemData(unsigned int); 24 void SetItemData(unsigned int, INT_PTR); 25 26 CRect GetItemRect(unsigned int); 27 }; 28 } 29 } 30