The TB_GETBUTTONTEXT 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 whose text is to be retrieved.
lpszText
Pointer to a buffer that receives the button text.
Return Values
Returns the length, in characters, of the string copied to the specified buffer if successful. The length does not include the terminating null character. Otherwise, the return value is - 1.