CToolbar.CheckButtonmethod
Checks a given button in a toolbar.
Syntax
FUNCTION CheckButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG, BYVAL fCheck AS SHORT) AS BOOLEAN
FUNCTION CheckButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS BOOLEAN
Also documented as
UncheckButton — one description covers them all.Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
idButton | Command identifier of the button to check. | |
fCheck | If TRUE, the check is added. If FALSE, the check is removed. |
Return value
Returns TRUE if successful, or FALSE otherwise.
Description
Checks or unchecks a given button in a toolbar.
Remarks
When a button is checked, it is displayed in the pressed state.
Reference
- Include file
CToolbar.inc - Defined in AfxNova/CToolbar.inc:351
- Documented in Windows/WIndows Controls/CToolbar Class.md
- Topic: CToolbar Class