WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | List of all members
ListBox Class Reference

Wrapper for listbox controls. More...

#include <control.h>

Inheritance diagram for ListBox:
Control IWindow

Public Member Functions

 ListBox (HWND hwnd=NULL)
 
int AddString (const tstring &text)
 
int DeleteString (int index)
 
int FindString (const tstring &text, int precedingIndex=-1)
 
int FindStringExact (const tstring &text, int precedingIndex=-1)
 
int GetAnchorIndex ()
 
int GetCaretIndex ()
 
int GetCount ()
 
int GetCurSel ()
 
int GetHorizontalExtent ()
 
LONG_PTR GetItemData (int index)
 
int GetItemHeight (int index)
 
BOOL GetItemRect (int index, RECT &r)
 
tstring GetItemText (int index)
 
LCID GetLocale ()
 
BOOL GetSel (int index)
 
int GetSelCount ()
 
BOOL GetSelItems (std::vector< LONG_PTR > &items)
 
int GetTopIndex ()
 
int InsertString (int index, const tstring &text)
 
WORD ItemFromPoint (POINT relativePos, BOOL &outside)
 
void ResetContent ()
 
int SelectString (const tstring &text, int precedingIndex)
 
BOOL SelItemRange (DWORD first, DWORD last, BOOL select)
 
BOOL SetAnchorIndex (int index)
 
BOOL SetCaretIndex (int index, BOOL scrollPartiallyIntoView=TRUE)
 
BOOL SetCount (int count)
 
int SetCurSel (int index)
 
void SetHorizontalExtent (int scrollableWidth)
 
BOOL SetItemData (int index, LONG_PTR data)
 
BOOL SetItemHeight (int index, BYTE height)
 
LCID SetLocale (LCID locale)
 
BOOL SetSel (int index, BOOL select)
 
BOOL SetTopIndex (int index)
 
- Public Member Functions inherited from Control
 Control (HWND hwnd=NULL)
 
HWND _InternalGetHandle ()
 
 operator HWND ()
 
Controloperator= (HWND hwnd)
 
- Public Member Functions inherited from IWindow
Rect ClientRect ()
 
void Destroy ()
 
void DragAcceptFiles (BOOL accept=TRUE)
 
void Enable (BOOL enable)
 
DWORD GetExStyle ()
 
HFONT GetFont ()
 
HICON GetIcon (BOOL bigIcon)
 
DWORD GetID ()
 
DWORD GetStyle ()
 
tstring GetText ()
 
BOOL Invalidate (const RECT *rect=NULL, BOOL eraseBkgnd=TRUE)
 
BOOL IsEnabled ()
 
BOOL IsVisible ()
 
void KillTimer (UINT_PTR timerID)
 
void ModifyStyle (DWORD add, DWORD remove)
 
void Move (int x, int y, BOOL redraw=TRUE)
 
void Move (const POINT &p, BOOL redraw=TRUE)
 
void Move (int x, int y, int width, int height, BOOL redraw=TRUE)
 
void Move (const POINT &p, const SIZE &s, BOOL redraw=TRUE)
 
void Move (const RECT &r, BOOL redraw=TRUE)
 
HWND ParentHandle ()
 
Rect RectOnParent ()
 
BOOL Redraw (const RECT *rect=NULL, HRGN region=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
HWND SetFocus ()
 
void SetFont (HFONT font, BOOL redraw=TRUE)
 
HICON SetIcon (HICON icon, BOOL bigIcon)
 
void SetRedraw (BOOL allowRedraw)
 
void SetText (const tstring &text)
 
UINT_PTR SetTimer (UINT_PTR timerID, UINT interval, TIMERPROC proc=NULL)
 
BOOL Show (int cmdShow)
 
Rect WindowRect ()
 

Additional Inherited Members

- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for listbox controls.

Constructor & Destructor Documentation

ListBox::ListBox ( HWND  hwnd = NULL)
inline

Member Function Documentation

int ListBox::AddString ( const tstring text)
inline
int ListBox::DeleteString ( int  index)
inline
int ListBox::FindString ( const tstring text,
int  precedingIndex = -1 
)
inline
int ListBox::FindStringExact ( const tstring text,
int  precedingIndex = -1 
)
inline
int ListBox::GetAnchorIndex ( )
inline
int ListBox::GetCaretIndex ( )
inline
int ListBox::GetCount ( )
inline
int ListBox::GetCurSel ( )
inline
int ListBox::GetHorizontalExtent ( )
inline
LONG_PTR ListBox::GetItemData ( int  index)
inline
int ListBox::GetItemHeight ( int  index)
inline
BOOL ListBox::GetItemRect ( int  index,
RECT &  r 
)
inline
tstring ListBox::GetItemText ( int  index)
inline
LCID ListBox::GetLocale ( )
inline
BOOL ListBox::GetSel ( int  index)
inline
int ListBox::GetSelCount ( )
inline
BOOL ListBox::GetSelItems ( std::vector< LONG_PTR > &  items)
inline
int ListBox::GetTopIndex ( )
inline
int ListBox::InsertString ( int  index,
const tstring text 
)
inline
WORD ListBox::ItemFromPoint ( POINT  relativePos,
BOOL &  outside 
)
inline
void ListBox::ResetContent ( )
inline
int ListBox::SelectString ( const tstring text,
int  precedingIndex 
)
inline
BOOL ListBox::SelItemRange ( DWORD  first,
DWORD  last,
BOOL  select 
)
inline
BOOL ListBox::SetAnchorIndex ( int  index)
inline
BOOL ListBox::SetCaretIndex ( int  index,
BOOL  scrollPartiallyIntoView = TRUE 
)
inline
BOOL ListBox::SetCount ( int  count)
inline
int ListBox::SetCurSel ( int  index)
inline
void ListBox::SetHorizontalExtent ( int  scrollableWidth)
inline
BOOL ListBox::SetItemData ( int  index,
LONG_PTR  data 
)
inline
BOOL ListBox::SetItemHeight ( int  index,
BYTE  height 
)
inline
LCID ListBox::SetLocale ( LCID  locale)
inline
BOOL ListBox::SetSel ( int  index,
BOOL  select 
)
inline
BOOL ListBox::SetTopIndex ( int  index)
inline

The documentation for this class was generated from the following file: