Clicking Buttons and Checking Boxes

By Ken Pugh, ITworld |  How-to

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

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Answers - Powered by ITworld

Join us:
Facebook

Twitter

Pinterest

Tumblr

LinkedIn

Google+

Ask a Question
randomness