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 icon for a static control. You can use this macro or send the STM_SETICON message explicitly.
Syntax
HICON Static_SetIcon(
HWND hwndCtl,
HICON hIcon
);
Parameters
hwndCtl
Type: HWND
A handle to the control.
hIcon
Type: HICON
a handle to the icon.
Return value
Type: HICON
A handle to the icon previously associated with the icon control, or zero if an error occurs.
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 |