Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

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


// Disable the Three radio button
rdoThree->EnableWindow(TRUE);

ProcessOrder();
}


  1. Call the above member function in EACH event. Here is one example (to save
    printing paper):


void CIceScreamOrderDlg::OnBnClickedFlavors()
{
// TODO: Add your control notification handler code here
ProcessOrder();
}


  1. Test the application

  2. Return to MSVC


19.2 Check Boxes.................................................................................................


19.2.1..Introduction..........................................................................................


A check box is a Windows control that allows the user to set or change the value of an
item as true or false. The control appears as a small square ?. When this empty square is
clicked, it gets marked by a check symbol ?. These two states control the check box as
checked? or unchecked ?.

Like the radio button, the check box does not indicate what it is used for. Therefore, it is
usually accompanied by a label that displays an explicit and useful string. The label can
Free download pdf