Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 20: List-Based Controls Visual C++ and MFC Fundamentals



  1. Set its Type to Bitmap and, in its Image combo box, select IDB_CUP

  2. Set its Center Image property to True

  3. Add a Control variable for the Picture control and name it m_Picture

  4. Save All


19.1.3..Radio Button Properties.....................................................................


As described already, to select a radio button, the user clicks it. To indicate to the user
that a button has been selected, it should display a dot in its round box. To display this
dot automatically, set the Auto property to True.

When adding a radio button to a host, it displays a text label to the right side of its round
box. If you prefer to position the label to the left of the small circle, set the Left Text
property to True or, at run time, add the BS_LEFTTEXT style:

The label that accompanies a radio button is static text that is included in a rectangular
shape. Since the radio button by default is configured to display one line of text, the
round box is locate to the left side of the label. If you plan to use multiple lines of text for
the label, at design time, change the rectangular area of the control accordingly:
Free download pdf