Static_SetIcon macro (windowsx.h)

Sets the icon for a static control. You can use this macro or send the STM_SETICON message explicitly.

Syntax

void Static_SetIcon(
   hwndCtl,
   hIcon
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

hIcon

Type: HICON

a handle to the icon.

Return value

None

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h