How do you code the ComboBoxEx Control as read-only?
I tried the following code, but it doesn't work:
CEdit* pCombo = (CEdit*)GetDlgItem(IDC_XXX); // XXX is the name of your ComboBoxEx Ctrl
pCombo->SetReadOnly();
Printable View
How do you code the ComboBoxEx Control as read-only?
I tried the following code, but it doesn't work:
CEdit* pCombo = (CEdit*)GetDlgItem(IDC_XXX); // XXX is the name of your ComboBoxEx Ctrl
pCombo->SetReadOnly();
You dont want the user to change the strings in the ComboBox. If so, then change the style of the ComboBox to "DropList". You can change it in the properties of the ComboBox in the dialog editor