Help Center

CToolbar.UncheckButtonmethod

Unchecks a given button in a toolbar.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION UncheckButton (BYVAL hToolbar AS HWND, BYVAL idButton AS LONG) AS BOOLEAN
Also documented as CheckButton — one description covers them all.

Parameters

NameDescription
hToolbarHandle to the toolbar control.
idButtonCommand identifier of the button to check.
fCheckIf 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:361
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class