kartikdasani wrote:
len = SendMessage(hToolbar,TB_GETBUTTONTEXT,i,(LPARAM)text);
The value of i is counting from 0 to TB_BUTTONCOUNT. Are you sure those values match the command identifiers of the buttons on your toolbar? See here[^] for more details. You should also (always) follow Superman[^]'s advice.
The best things in life are not things.