Use of Combo Box control

zhaozj2021-02-17  53

Combo Box control.

1. You look at the downward triangle of that control under the editing state, you have taken a stuffy stuff. The height is high, otherwise the drop-down option cannot be displayed during execution.

2. Add options to Combo Box, select the properties of the COMBO BOX control, select the DATA tab, add options in the Edit box, and press Ctrl-Enter to add the next option.

3. Add variables to Combo Box Combo box with two variables, CCOMBOBOX class variables, and CString variables. The CCOMBOBOX variable is used to set the properties of the Combo Box, typically use in the OnInitDialog () function in the CDIALOG class. The addition method is to add variables to the ClassWizard to add Category in Category. For example: ccomboBox.Setcurseel (0) is used to set the debt menu initial value, see MSDN. The cstring variable is used to store the option value selected by the drop-down menu. Similarly, the value of this variable is updated using the Updatedata function when the option changes.

转载请注明原文地址:https://www.9cbs.com/read-28785.html

New Post(0)