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();