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

Wrapper for combobox controls. More...

#include <control.h>

Inheritance diagram for ComboBox:
Control IWindow

Public Member Functions

 ComboBox (HWND hwnd=NULL)
 
int AddString (const tstring &text)
 
int DeleteString (int index)
 
int FindString (const tstring &text, int startIndex=-1)
 
int FindStringExact (const tstring &text, int startIndex=-1)
 
int GetCount ()
 
int GetCurSel ()
 
RECT GetDroppedControlRect ()
 
BOOL GetDroppedState ()
 
int GetDroppedWidth ()
 
void GetEditSel (DWORD *start, DWORD *end)
 
BOOL GetExtendedUI ()
 
int GetHorizontalExtent ()
 
LONG_PTR GetItemData (int index)
 
tstring GetLBText (int index)
 
LCID GetLocale ()
 
int GetTopIndex ()
 
int InsertString (int index, const tstring &text)
 
void LimitText (int limit)
 
void ResetContent ()
 
int SetCurSel (int index)
 
int SetDroppedWidth (int width)
 
BOOL SetEditSel (SHORT start, SHORT end)
 
BOOL SetExtendedUI (BOOL extended)
 
void SetHorizontalExtent (int scrollableWidth)
 
BOOL SetItemData (int index, LONG_PTR data)
 
LCID SetLocale (LCID locale)
 
BOOL SetTopIndex (int index)
 
void ShowDropDown (BOOL show)
 
- 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 combobox controls.

Constructor & Destructor Documentation

ComboBox::ComboBox ( HWND  hwnd = NULL)
inline

Member Function Documentation

int ComboBox::AddString ( const tstring text)
inline
int ComboBox::DeleteString ( int  index)
inline
int ComboBox::FindString ( const tstring text,
int  startIndex = -1 
)
inline
int ComboBox::FindStringExact ( const tstring text,
int  startIndex = -1 
)
inline
int ComboBox::GetCount ( )
inline
int ComboBox::GetCurSel ( )
inline
RECT ComboBox::GetDroppedControlRect ( )
inline
BOOL ComboBox::GetDroppedState ( )
inline
int ComboBox::GetDroppedWidth ( )
inline
void ComboBox::GetEditSel ( DWORD *  start,
DWORD *  end 
)
inline
BOOL ComboBox::GetExtendedUI ( )
inline
int ComboBox::GetHorizontalExtent ( )
inline
LONG_PTR ComboBox::GetItemData ( int  index)
inline
tstring ComboBox::GetLBText ( int  index)
inline
LCID ComboBox::GetLocale ( )
inline
int ComboBox::GetTopIndex ( )
inline
int ComboBox::InsertString ( int  index,
const tstring text 
)
inline
void ComboBox::LimitText ( int  limit)
inline
void ComboBox::ResetContent ( )
inline
int ComboBox::SetCurSel ( int  index)
inline
int ComboBox::SetDroppedWidth ( int  width)
inline
BOOL ComboBox::SetEditSel ( SHORT  start,
SHORT  end 
)
inline
BOOL ComboBox::SetExtendedUI ( BOOL  extended)
inline
void ComboBox::SetHorizontalExtent ( int  scrollableWidth)
inline
BOOL ComboBox::SetItemData ( int  index,
LONG_PTR  data 
)
inline
LCID ComboBox::SetLocale ( LCID  locale)
inline
BOOL ComboBox::SetTopIndex ( int  index)
inline
void ComboBox::ShowDropDown ( BOOL  show)
inline

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