From winuser.h:
#define CBS_DROPDOWN 0x0002L
#define CBS_DROPDOWNLIST 0x0003L
You need:
switch(m_MyComboBox.GetStyle() & CBS_DROPDOWNLIST)
{
case CBS_SIMPLE:
// do stuff
break;
case CBS_DROPDOWN:
// do stuff
break;
case CBS_DROPDOWNLIST:
// do stuff
break;
}
Serge - appTranslator
2009-05-28 09:47:59