win32: fix selecting items that differs only in case in combobox. Issue #16816.

git-svn-id: trunk@34100 -
This commit is contained in:
blikblum 2011-12-11 15:00:33 +00:00
parent 649fbe7f16
commit 327e84b060

View File

@ -1287,7 +1287,8 @@ begin
itemindex is updated, so set text manually }
CBN_SELCHANGE:
begin
UpdateComboBoxText(TCustomComboBox(lWinControl));
if TCustomComboBox(lWinControl).Style in [csSimple, csDropDown] then
UpdateComboBoxText(TCustomComboBox(lWinControl));
SendSimpleMessage(lWinControl, LM_CHANGED);
LMessage.Msg := LM_SELCHANGE;
end;