TB_GETBUTTONTEXT

This message retrieves the text of a button in a toolbar.

TB_GETBUTTONTEXT wParam = (WPARAM) idButton; 
lParam = (LPARAM)(LPSTR) lpszText;

Parameters

  • idButton
    Command identifier of the button for which to retrieve text.
  • lpszText
    Long pointer to a buffer that receives the button text.

Return Values

The length—in characters and not including the terminating null character—of the string copied to the specified buffer indicates success. –1 indicates failure.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.