複数選択リスト ボックスの指定したインデックス位置にある項目にフォーカス四角形を設定します。 項目が表示されていない場合は、ビューにスクロールされます。
Parameters
-
wParam
-
フォーカスの四角形を受け取るリスト ボックス項目の 0 から始まるインデックスを指定します。
Windows 95/Windows 98/Windows Millennium Edition (Windows Me) : The wParam parameter is limited to 16-bit values. つまり、リスト ボックスには 32,767 個を超えるアイテムを含めることはできません。 項目の数は制限されていますが、リスト ボックス内の項目の合計サイズ (バイト単位) は、使用可能なメモリによってのみ制限されます。
-
lParam
-
If this value is FALSE, the item is scrolled until it is fully visible; if it is TRUE, the item is scrolled until it is at least partially visible.
Return value
エラーが発生した場合、戻り値は LB_ERR (-1) になります。 それ以外の場合は、LB_OKAY (0) が返されます。
Remarks
If this message is sent to a single-selection list box that does not contain a selected item, the caret index is set to the item specified by the wParam parameter. 単一選択リスト ボックスに選択した項目が含まれている場合、リスト ボックスはLB_ERRを返します。
Requirements
| Requirement | Value |
|---|---|
| サポートされている最小のクライアント |
Windows Vista [デスクトップ アプリのみ] |
| サポートされている最小のサーバー |
Windows Server 2003 [デスクトップ アプリのみ] |
| Header |
|