Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Gets the indexes of selected items in a multiple-selection list box. You can use this macro or send the LB_GETSELITEMS message explicitly.
Syntax
int ListBox_GetSelItems(
HWND hwndCtl,
int cItems,
int *lpItems
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
cItems
Type: int
The maximum number of selected items whose item numbers are to be placed in the buffer.
lpItems
Type: int*
A pointer to a buffer large enough for the number of integers specified by cItems.
Return value
Type: int
The number of items placed in the buffer. If the list box is a single-selection list box, the return value is LB_ERR.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | windowsx.h |