The TB_ISBUTTONPRESSED message determines whether the specified button in a toolbar is pressed.
TB_ISBUTTONPRESSED wParam = (WPARAM) idButton; lParam = 0;
Returns nonzero if the button is pressed or zero otherwise.