CButton.SetBitmapmethod
Associates a new bitmap with a button. The return value is a handle to the image previously associated with the button, if any; otherwise, it is NULL.
Syntax
FUNCTION SetBitmap (BYVAL hButton AS HWND, BYVAL hbmp AS HBITMAP) AS HBITMAP
Also documented as
Indeterminate — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
hButton | The handle of the button control. | |
hBmp | Handle of bitmap. |
Return value
The return value is a handle to the bitmap previously associated with the button, if any; otherwise, it is NULL.
Description
Sets the button state to grayed, indicating an indeterminate state. Use this value only if the button has the BS_3STATE or BS_AUTO3STATE style.
Examples
CButton.Indeterminate(hButton)
CButton.SetBitmap(hButton, hBmp)
Reference
- Include file
CButton.inc - Defined in AfxNova/CButton.inc:171
- Documented in Windows/WIndows Controls/CButton Class.md
- Topic: CButton Class