TB_SETSTATE

This message sets the state for the specified button in a toolbar.

At a Glance

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

Syntax

  1. TB_SETSTATE wParam = (WPARAM) idButton;
    lParam = (LPARAM)MAKELONG(fState,0);

Parameters

idButton

Command identifier of the button.

fState

State flags. This parameter can be a combination of values. For information about toolbar button state values, see the Windows CE User Interface Services Guide.

Return Values

TRUE indicates success. FALSE indicates failure.