Share via


TB_ENABLEBUTTON (Compact 2013)

3/28/2014

In a toolbar, this message enables or disables the specified button.

In a central menu, this message enables or disables the specified menu item.

Syntax

TB_ENABLEBUTTON
    wParam = (WPARAM) idButton;
  lParam = (LPARAM) MAKELONG (fEnable, 0);

Parameters

  • idButton
    Command identifier of the button or menu item to enable or disable.
  • fEnable
    A Boolean value specifying whether the button or menu item is enabled or not. If set to TRUE, the button is enabled. If set to FALSE, the button is disabled.

Return Value

TRUE indicates success. FALSE indicates failure.

Requirements

Header

commctrl.h

See Also

Reference

Toolbar Controls Messages