|
sprint 1-alpha
|
#include <ComboBox.h>
Inherits sprint::gtl::CWindow.
Public Member Functions | |
| ComboBox (HWND hWnd=NULL) | |
| ComboBox (CWindow hWnd) | |
| void | AddStrings (const TCHAR **list) |
| Add multiple strings to ComboBox. | |
| int | FindItemDataEx (DWORD dwData) const |
| int | GetCount () const |
| int | GetCurSel () const |
| int | SetCurSel (int nSelect) |
| LCID | GetLocale () const |
| LCID | SetLocale (LCID nNewLocale) |
| int | GetTopIndex () const |
| int | SetTopIndex (int nIndex) |
| UINT | GetHorizontalExtent () const |
| void | SetHorizontalExtent (UINT nExtent) |
| int | GetDroppedWidth () const |
| int | SetDroppedWidth (UINT nWidth) |
| DWORD | GetEditSel () const |
| BOOL | SetEditSel (int nStartChar, int nEndChar) |
| DWORD_PTR | GetItemData (int nIndex) const |
| int | SetItemData (int nIndex, DWORD_PTR dwItemData) |
| void * | GetItemDataPtr (int nIndex) const |
| int | SetItemDataPtr (int nIndex, void *pData) |
| int | GetLBText (int nIndex, LPTSTR lpszText) const |
| int | GetLBTextLen (int nIndex) const |
| int | GetItemHeight (int nIndex) const |
| int | SetItemHeight (int nIndex, UINT cyItemHeight) |
| BOOL | GetExtendedUI () const |
| int | SetExtendedUI (BOOL bExtended=TRUE) |
| void | GetDroppedControlRect (LPRECT lprect) const |
| BOOL | GetDroppedState () const |
| int | InitStorage (int nItems, UINT nBytes) |
| void | ResetContent () |
| Clear all strings. | |
| BOOL | LimitText (int nMaxChars) |
| void | ShowDropDown (BOOL bShowIt=TRUE) |
| int | AddString (LPCTSTR lpszString) |
| int | DeleteString (UINT nIndex) |
| remove the n-th string item | |
| int | InsertString (int nIndex, LPCTSTR lpszString) |
| Insert a string in a nIndex. | |
| int | Dir (UINT attr, LPCTSTR lpszWildCard) |
| int | FindString (int nStartAfter, LPCTSTR lpszString) const |
| int | FindStringExact (int nIndexStart, LPCTSTR lpszFind) const |
| int | SelectString (int nStartAfter, LPCTSTR lpszString) |
| void | Clear () |
| Clear Clipboard. | |
| void | Copy () |
| Copy to ClipBoard. | |
| void | Cut () |
| Cut to clipboard. | |
| void | Paste () |
| Past from clipboard. | |
Static Public Member Functions | |
| static LPCSTR | GetWndClassName () |
ComboBox control
| sprint::gtl::ComboBox::ComboBox | ( | HWND | hWnd = NULL | ) |
sprint::ComboBox cb(GetDlgItem(hwnd, IDC_LIST));
| int sprint::gtl::ComboBox::AddString | ( | LPCTSTR | lpszString | ) |
manipulating listbox items
cb.AddString(_T("Linear Stretch"));
1.7.4