TB_GETSTATE

This message retrieves information about the state of the specified button in a toolbar, such as whether it is enabled, pressed, or checked.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later

Syntax

  1. TB_GETSTATE wParam = (WPARAM) idButton; lParam = 0;

Parameters

idButton

Command identifier of the button for which to retrieve information.

Return Values

The button state information indicates success. –1 indicates failure. The button state information can be a combination of values. For information about toolbar button state values, see the Windows CE User Interface Services Guide.