#pragma once #include "SRWnd.h" #include namespace SRFramework{ class SRListBox : public SRFramework::SRWnd { public: SRListBox(VOID); virtual ~SRListBox(VOID); BOOL Create(SRWnd *pParentWnd, RECT bounds, INT nChildID = NULL, DWORD dwStyle = WS_CHILD | WS_VSCROLL | LBS_DISABLENOSCROLL | LBS_NOTIFY | WS_BORDER | LBS_NOINTEGRALHEIGHT); // Does not need to be registered the call to InitCommonControlsEx // does that for us. BOOL Register() { return TRUE; } WCString GetText(); VOID Clear(); INT AddItem(const WCString &wcsItem); INT InsertItem(INT nItemIndex, const WCString &wcsItem); INT DeleteItem(INT nItemIndex); INT FindItem(const WCString &wcsItem); INT SelectItem(const WCString &wcsItem); INT GetCurSel(); }; }