win32: revert 37846 #994d2dce9f. Now combobox events are consistent across widgetsets although slightly different from Delphi. Fix #22739

git-svn-id: trunk@39677 -
This commit is contained in:
blikblum 2012-12-29 10:00:59 +00:00
parent 62360dc5e3
commit be9e302113

View File

@ -1330,8 +1330,10 @@ begin
end;
CBN_CLOSEUP:
begin
if TCustomComboBox(lWinControl).Style in [csSimple, csDropDown] then
UpdateComboBoxText(TCustomComboBox(lWinControl));
// 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;
end;
end;
end;