The TB_COMMANDTOINDEX message retrieves the zero-based index for the button associated with the specified command identifier.
TB_COMMANDTOINDEX wParam = (WPARAM) idButton; lParam = 0;
Returns the zero-based index for the button.