The TB_GETBUTTONTEXT message retrieves the text of a button in a toolbar.
TB_GETBUTTONTEXT wParam = (WPARAM) idButton; lParam = (LPARAM) (LPSTR) lpszText;
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.