Partager via


TB_INSERTBUTTON

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message inserts a button in a toolbar.

Syntax

TB_INSERTBUTTON wParam = (WPARAM) iButton; 
    lParam = (LPARAM)(LPTBBUTTON) lpButton; 

Parameters

  • iButton
    Zero-based index of a button. The message inserts the new button to the left of this button.
  • lpButton
    Long pointer to a TBBUTTON structure that contains information about the button to insert.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

If an application uses the CreateWindowEx function to create the toolbar, the application must send a TB_BUTTONSTRUCTSIZE message to the toolbar before sending the TB_INSERTBUTTON message.

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

TBBUTTON
Toolbar Controls Messages