I would like to hide a toolbar button based on the buttons tooltip text.
You can see I have the window handle and the number of buttons counted, 0 thru count-1. I can also hide any given button with the second SendMessage. Now I just need a bit of help to get each buttons tooltip text so I can compare it and hide the correct button. The closer to WinAPI the better I'll be able to understand. Any help much appreciated.Code:int count = (int)SendMessage(hWnd, TB_BUTTONCOUNT, 0, 0); SendMessage(hWnd, TB_HIDEBUTTON, i, TRUE);