|
-
June 8th, 1999, 11:07 AM
#1
CComboBox ModifyStyle() not working?
hi,
does anybody have a clue why this is not working?
myCombo.ModifyStyle(CBS_DROPDOWN, CBS_DROPDOWNLIST);
or this:
myCombo.ModifyStyle(CBS_DROPDOWNLIST, CBS_DROPDOWN);
and this always returns the first option no matter what is the real style (in that case "CBS_DROPDOWN"):
DWORD d = myCombo.GetStyle();
if (d & CBS_DROPDOWN)
AfxMessageBox("CBS_DROPDOWN");
else
if (d & CBS_DROPDOWNLIST)
AfxMessageBox("CBS_DROPDOWNLIST");
else
if (d & CBS_SIMPLE)
AfxMessageBox("CBS_SIMPLE");
any ideas?
oren.
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
|