Toolbar Controls Messages (Windows CE 5.0)

Send Feedback

The following table shows the toolbar controls messages, with a description of the purpose of each.

Programming element Description
TB_ADDBITMAP This message adds one or more images to the list of button images available for a toolbar.
TB_ADDBUTTONS This message adds one or more buttons to a toolbar.
TB_ADDSTRING This message adds a new string to the list of strings available for a toolbar.
TB_AUTOSIZE This message causes a toolbar to be resized.
TB_BUTTONCOUNT This message retrieves a count of the buttons currently in the toolbar.
TB_BUTTONSTRUCTSIZE This message specifies the size of the TBBUTTON structure.
TB_CHANGEBITMAP This message changes the bitmap for a button in a toolbar.
TB_CHECKBUTTON This message checks or clears a specified button in a toolbar.
TB_COMMANDTOINDEX This message retrieves the zero-based index for the button associated with the specified command identifier.
TB_DELETEBUTTON This message deletes a button from the toolbar.
TB_ENABLEBUTTON This message enables or disables the specified button in a toolbar.
TB_GETBITMAP This message retrieves the index of the bitmap associated with a button in a toolbar.
TB_GETBITMAPFLAGS This message retrieves the flags for the current bitmap.
TB_GETBUTTON This message retrieves information about the specified button in a toolbar.
TB_GETBUTTONINFO This message retrieves the information for a button in a toolbar.
TB_GETBUTTONSIZE This message retrieves the current width and height of toolbar buttons, in pixels.
TB_GETBUTTONTEXT This message retrieves the text of a button in a toolbar.
TB_GETDISABLEDIMAGELIST This message retrieves the image list that a toolbar control uses to display disabled buttons.
TB_GETIMAGELIST This message retrieves the image list that a toolbar control uses to display buttons in their default state.
TB_GETITEMRECT This message retrieves the bounding rectangle of a button in a toolbar.
TB_GETRECT This message retrieves the bounding rectangle for a specified toolbar button.
TB_GETROWS This message retrieves the number of rows of buttons in a toolbar with the TBSTYLE_WRAPABLE style.
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.
TB_GETSTYLE This message retrieves the styles currently in use for a toolbar control.
TB_GETTEXTROWS This message retrieves the maximum number of text rows that can be displayed on a toolbar button.
TB_GETTOOLTIPS This message retrieves the handle to the ToolTip control, if any, associated with the toolbar.
TB_HIDEBUTTON This message hides or shows the specified button in a toolbar.
TB_HIGHLIGHTBUTTON This message sets the highlight state of a specified button in a toolbar control.
TB_INDETERMINATE This message sets or clears the indeterminate state of the specified button in a toolbar.
TB_INSERTBUTTON This message inserts a button in a toolbar.
TB_ISBUTTONCHECKED This message determines whether the specified button in a toolbar is checked.
TB_ISBUTTONENABLED This message determines whether the specified button in a toolbar is enabled.
TB_ISBUTTONHIDDEN This message determines whether the specified button in a toolbar is hidden.
TB_ISBUTTONHIGHLIGHTED This message checks the highlight state of a toolbar button.
TB_ISBUTTONINDETERMINATE This message determines whether the specified button in a toolbar is indeterminate.
TB_ISBUTTONPRESSED This message determines whether the specified button in a toolbar is pressed.
TB_LOADIMAGES This message loads bitmaps into a toolbar control's image list.
TB_PRESSBUTTON This message releases the specified button in a toolbar.
TB_REPLACEBITMAP This message replaces an existing bitmap with a new bitmap.
TB_SETBITMAPSIZE This message sets the size of the bitmapped images to be added to a toolbar.
TB_SETBUTTONINFO This message sets the information for an existing button in a toolbar.
TB_SETBUTTONSIZE This message sets the size of the buttons to be added to a toolbar.
TB_SETBUTTONWIDTH This message sets the minimum and maximum button widths in the toolbar control.
TB_SETCMDID This message sets the command identifier of a toolbar button.
TB_SETDISABLEDIMAGELIST This message sets the image list that the toolbar control will use to display disabled buttons.
TB_SETDRAWTEXTFLAGS This message sets the text drawing flags for the toolbar.
TB_SETIMAGELIST This message sets the image list that the toolbar will use to display buttons that are in their default state.
TB_SETINDENT This message sets the indentation for the first button in a toolbar control.
TB_SETMAXTEXTROWS This message sets the maximum number of text rows displayed on a toolbar button.
TB_SETPARENT This message sets the parent window for a toolbar.
TB_SETROWS This message sets the number of rows of buttons in a toolbar.
TB_SETSTATE This message sets the state for the specified button in a toolbar.
TB_SETSTYLE This message sets the style for a toolbar control.
TB_SETTOOLTIPS This message adds an array of ToolTip strings to a toolbar.

See Also

Toolbar Controls Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.