Clicking Buttons and Checking Boxes

We covered the edit control in a previous column. We'll continue our

look at controls in this one.

The CButton class includes check boxes, push buttons, and radio

buttons. They differ in appearance but all of these possess messages

invoked when the button is pushed or box checked. The messages are


In a previous article, we set up a handler for the OK button's

BN_CLICKED message. In this one, we'll create another button and set

up a handler for it. We're going to add a Randomize button to


ITWorld DealPost: The best in tech deals and discounts.
Shop Tech Products at Amazon