Static_GetIcon macro (windowsx.h)
Retrieves a handle to the icon associated with a static control that has the SS_ICON style. You can use this macro or send the STM_GETICON message explicitly.
Syntax
HICON Static_GetIcon(
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, or NULL if the static control has no associated icon or if an error occurred.
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 |