|
Public Member Functions |
| CheckListbox (const RECT &r, HWND hFather) |
| ~CheckListbox () |
void | addItem (const std::string &label, bool bSelected=false) |
void | addItems (const std::list< std::pair< std::string, bool > > &items) |
void | removeItem (const std::string &label) |
void | removeItems () |
std::list< std::string > | getSelected () const |
std::list< std::string > | getUnselected () const |
void | setSelected (const std::string &nm, bool bSelected) |
std::string | getFocused () const |
int | getId () const |
void | selectAll () |
void | deselectAll () |
Private Member Functions |
LRESULT | fatherProc (UINT uMsg, WPARAM wP, LPARAM lP) |
LRESULT | listProc (UINT uMsg, WPARAM wP, LPARAM lP) |
std::string | getItem (int i) const |
void | alternateSelection (int i) |
Static Private Member Functions |
static LRESULT CALLBACK | dispatchFatherProc (HWND hWnd, UINT uMsg, WPARAM wP, LPARAM lP) |
static LRESULT CALLBACK | dispatchListProc (HWND hWnd, UINT uMsg, WPARAM wP, LPARAM lP) |
static int | createId () |
Private Attributes |
HWND | m_hWnd |
HWND | m_hFather |
int | m_id |
std::list< std::string > | m_selected |
Static Private Attributes |
static WNDPROC | m_origListProc = NULL |
static Boxes | m_boxes |
static CriticalSection | m_lock |
static std::map< HWND, WNDPROC > | m_origProcs |
static std::map< HWND, std::list<
CheckListbox * > > | m_subclassing |
Classes |
class | Boxes |