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.
Ensures that the specified item in a list box is visible. You can use this macro or send the LB_SETTOPINDEX message explicitly.
Syntax
int ListBox_SetTopIndex(
HWND hwndCtl,
int indexTop
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
indexTop
Type: int
The zero-based index of the item to put at the top of the visible part of the list.
Return value
Type: int
If an error occurs, the return value is LB_ERR.
Remarks
The list box contents are scrolled so that either the specified item appears at the top of the list box or the maximum scroll range has been reached.
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 |