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

BN_CLICKED and BN_DOUBLE_CLICKED.

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

the

From CIO: 8 Free Online Courses to Grow Your Tech Skills
Join the discussion
Be the first to comment on this article. Our Commenting Policies