Using Other Control Features
You've seen how to customize the control class CScrollBar by adding code in the dialog box's OnInitDialog member function. You can program other controls in a similar fashion. In the Visual Studio documentation, look at the control classes, particularly CListBox and CComboBox. Each has a number of features that the Properties window and the Visual Studio wizards do not directly support. Some combo boxes, for example, can support multiple selections by applying the LBS_MULTIPLESEL list box style to the combo box. If you want to use these features, don't try to use Class View to add data members. Instead, define your own data members and add your own exchange code in OnInitDialog and OnBnClickedOk.