CStatic.SetIconmethod
Associates an icon with an static control.
Syntax
FUNCTION SetIcon (BYVAL hStatic AS HWND, BYVAL hIcon AS HICON) AS HICON
Parameters
| Name | Description | |
|---|---|---|
hIcon | Handle of the icon to set. |
Description
Associates an icon with an static control. The return value is a handle to the icon previously associated with the static control, if any; otherwise, it is NULL.
Example
DIM hOldIcon AS HICON = CStatic.SetIcon(hStatic, hIcon)
Reference
- Include file
CStatic.inc - Defined in AfxNova/CStatic.inc:193
- Documented in Windows/WIndows Controls/CStatic Class.md
- Topic: CStatic Class