Share via


TBBUTTON

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains information about a button in a toolbar.

Syntax

typedef struct _TBBUTTON { 
  int iBitmap; 
  int idCommand; 
  BYTE fsState; 
  BYTE fsStyle; 
  DWORD dwData; 
  int iString; 
} TBBUTTON, NEAR* PTBBUTTON, FAR* LPTBBUTTON;
typedef const TBBUTTON FAR* LPCTBBUTTON; 

Members

  • iBitmap
    Zero-based index of the button image.
  • idCommand
    Command identifier associated with the button. This identifier is used in a WM_COMMAND message when the button is chosen.
  • fsState
    Button state flags. It can be a combination of the values listed in the table below.

    State Description

    TBSTATE_CHECKED

    The button has the TBSTYLE_CHECKED style and is pressed.

    TBSTATE_ELLIPSES

    The button displays ellipses (...) if the text does not fit the size of the button. This style is unique to Windows Embedded CE.

    TBSTATE_ENABLED

    The button accepts user input. A button without this state does not accept user input, and is dimmed.

    TBSTATE_HIDDEN

    The button is not visible and cannot receive user input.

    TBSTATE_HIGHLIGHTED

    The button is highlighted.

    TBSTATE_INDETERMINATE

    The button is dimmed.

    TBSTATE_PRESSED

    The button is being pressed.

    TBSTATE_WRAP

    The button has a line break that follows it. The button also must have the TBSTATE_ENABLED state.

  • fsStyle
    Button style. It can be a combination of the button style values listed in Control Styles.
  • dwData
    Specifies an application-defined value.
  • iString
    Zero-based index of the button string.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

WM_COMMAND
Toolbar Controls Structures