CButton.SetIconmethod
Associates a new icon with the button.
Syntax
FUNCTION SetIcon (BYVAL hButton AS HWND, BYVAL hIcon AS HICON) AS HICON
Parameters
| Name | Description | |
|---|---|---|
hButton | The handle of the button control. | |
hIcon | Handle of icon. |
Return value
The return value is a handle to the icon previously associated with the button, if any; otherwise, it is NULL.
Description
Associates a new icon with the button.
Example
CButton.SetIcon(hButton, hIcon)
Reference
- Include file
CButton.inc - Defined in AfxNova/CButton.inc:180
- Documented in Windows/WIndows Controls/CButton Class.md
- Topic: CButton Class