次の方法で共有


TB_INSERTBUTTON (Compact 2013)

3/28/2014

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

See Also

Reference

Toolbar Controls Messages
TBBUTTON