Fixed combobox flags handling to allow CBS_DROPDOWN style.

oldstable
Eric Frias 2003-09-18 04:31:15 +00:00 committed by Alexandre Julliard
parent 93cd5bdeed
commit 16f4ededb6
1 changed files with 2 additions and 1 deletions

View File

@ -1978,7 +1978,8 @@ static control_t *ins_ctrl(int type, int special_style, control_t *ctrl, control
defaultstyle |= LBS_NOTIFY | WS_BORDER;
break;
case CT_COMBOBOX:
defaultstyle |= CBS_SIMPLE;
if (!(ctrl->style->or_mask & (CBS_SIMPLE | CBS_DROPDOWN | CBS_DROPDOWNLIST)))
defaultstyle |= CBS_SIMPLE;
break;
case CT_STATIC:
if(special_style == SS_CENTER || special_style == SS_LEFT || special_style == SS_RIGHT)