The button in a toolbar(Add-in)

how to make the button with changing visual  condition in a toolbar, by the first pressing becomes pressed, the subsequent pressing returns it in a usual condition? 

SolidworksApi macros