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