oren y
June 8th, 1999, 11:07 AM
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.
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.