|
-
May 3rd, 1999, 05:49 PM
#1
ComboBoxEx: Anybody know how to make this read-only?
CEdit* pCombo = (CEdit*)GetDlgItem(IDC_XXXX); // XXXX is the name of you comboboxex
pCombo->SetReadOnly();
The above code doesn't work, why not and what is the correct code?
-
May 3rd, 1999, 06:15 PM
#2
Re: ComboBoxEx: Anybody know how to make this read-only?
To my experience (and this could be wrong) but the SetReadOnly() function only works on edit boxes. I don't think it works on combo boxes, and if it does work on them, I would guess that it only works when the ComboBox has the DROPDOWN style (combo + edit), rather than the just combo style of DROPLIST.
- Troy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|