I have a group of four owner-draw stand-alone child window buttons. The group functions as a group of radio buttons would. In my handlers for the buttons I set the state accordingly, setting the state of the selected button to TRUE and the other three to FALSE. As the message is not sent until I release the mouse button, the program draws the buttons "up" state before drawing the "down" state. Occasionally this causes noticible flicker in the button. Is there any way around this? Also, I am not familiar with applying a bitmask. Exactly how do I apply the bitmask to obtain the state of a button using CButton::GetState()?

TIA

Thomas