Visual C++ and MFC Fundamentals Chapter 20: List-Based Controls
be positioned on either part of the square box, depending on the programmer who
implemented it.
Unlike the radio buttons that implement a mutual-exclusive choice, a check box can
appear by itself or in a group. When a check box appears in a group with other similar
controls, it assumes a completely independent behavior and it must be implemented as its
own entity. This means that clicking a check box has no influence on the other controls.
Practical Learning: Introducing Check Boxes
- Start a new Dialog Based application named FastFood and set the Dialog Title as
Fast Food Restaurant – Customer Menu - Delete the TODO line
- Design the dialog box as follows:
Control ID Caption Other Property
Group Box Don’t Care Bread
Radio Button IDC_BREAD &Bun Group = True
Left Text = True
Radio Button IDC_ROLL &Roll Left Text = True
Group Box Don’t Care Meat
Radio Button IDC_MEAT Bee&f Patty Group = True
Left Text = True
Radio Button IDC_GRILLED_CHICKEN &Grilled Chicken Left Text = True
Radio Button IDC_CHICKEN_BREAST &Chicken Breast Left Text = True
Group Box Don’t Care Ingredients
- Change the designs of the IDR_MAINFRAME icon as follows: