The TB_GETSTATE message retrieves information about the state of the specified button in a toolbar, such as whether it is enabled, pressed, or checked.
TB_GETSTATE wParam = (WPARAM) idButton; lParam = 0;
Returns the button state information if successful or - 1 otherwise. The button state information can be a combination of the values listed in Button States.