TB_GETBUTTONTEXT

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

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later

Syntax

  1. 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.