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