The TB_ISBUTTONCHECKED message determines whether the specified button in a toolbar is checked.
TB_ISBUTTONCHECKED
wParam = (WPARAM) idButton;
lParam = 0;
Parameters
idButton
Command identifier of the button.
Return Values
Returns nonzero if the button is checked or zero otherwise.