Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

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


void CTableWizardDlg::OnRemoveAll()
{
// TODO: Add your control notification handler code here
m_SelectedFields.ResetContent();

// Since the Selected Fields list is now empty,
// disable the Remove buttons
m_RemoveOne.EnableWindow(FALSE);
m_RemoveAll.EnableWindow(FALSE);
}


  1. Test your program

  2. Return to MSVC.


20.2 Combo Boxes...............................................................................................


20.2.1..Overview...............................................................................................


A combo box is a Windows control that holds a list of items. Each item can be a null-
terminated string or it can be made of a bitmap and a string. A combo box shares a lot of
characteristics with a list but there are more variances of a combo box.

As far as looks are concerned, there are two types of
combo boxes. The most regularly used combo box is
made of two sections. The main part is an edit box.
On the right of the edit box, there is a button with a
down pointing arrow:
Free download pdf