Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets the state of a list-view item. Send this message explicitly or by using the ListView_SetItemIndexState macro.
Parameters
-
wParam [in]
-
A pointer to an LVITEMINDEX structure for the item. The calling process is responsible for allocating this structure and setting the members.
-
lParam [in]
-
A pointer to an LVITEM structure. The calling process is responsible for allocating memory for the structure. Set the state member to one or more (as a bitwise combination) of the List-View Item States flags. Set the stateMask member of the structure to indicate the valid bits of the state member. For more information, see the stateMask member of the LVITEM structure.
Return value
Returns one of the following values of type HRESULT.
| Return code | Description |
|---|---|
|
The state could not be set. |
|
The list-view control was not ready for the operation. |
|
The operation was successful. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client |
Windows Vista [desktop apps only] |
| Minimum supported server |
Windows Server 2008 [desktop apps only] |
| Header |
|