win32: let TComboBox.CloseUp fire before Change (delphi compatible). Fix #22352

git-svn-id: trunk@37846 -
This commit is contained in:
blikblum 2012-07-02 02:10:54 +00:00
parent 841ea14c49
commit 994d2dce9f

View File

@ -1300,10 +1300,8 @@ begin
end;
CBN_CLOSEUP:
begin
// according to msdn CBN_CLOSEUP can happen before CBN_SELCHANGE and
// unfortunately it is simple truth. but we need correct order in the LCL
PostMessage(lWinControl.Handle, CN_COMMAND, WParam, LParam);
Exit;
if TCustomComboBox(lWinControl).Style in [csSimple, csDropDown] then
UpdateComboBoxText(TCustomComboBox(lWinControl));
end;
end;
end;