[1/2] comctl32: Added tests to show a ComboBoxEx bug caused by incorrect focus change

Dylan Smith dylan.ah.smith at gmail.com
Thu Jul 3 10:37:10 CDT 2008


Bug #13374 was created for the issue.

Certain WM_LBUTTONDOWN & WM_LBUTTONUP events should change focus to the
ComboBox (a child of ComboBoxEx), but instead the focus was set to the
Edit control.

This caused a bug where the dropdown list is rolled up on the
WM_LBUTTONDOWN event instead of on WM_LBUTTONUP. The WM_KILLFOCUS
message on the ComboBox rolls up the list since it does not recognize
the Edit control that is recieving focus, since the edit control is a
child of ComboBoxEx not ComboBox, so it acts as if the whole control
lost focus and rolls up the list.  This can then result in a selection
on pressing and releasing the mouse button, which can be seen from
trying to select a font size in wordpad using the toolbars comboex
control.
---
 dlls/comctl32/tests/comboex.c |  102 ++++++++++++++++++++++++++++++++++++++++-
 dlls/user32/tests/combo.c     |   88 +++++++++++++++++++++++++++++++++++
 2 files changed, 189 insertions(+), 1 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-comctl32-Added-tests-to-show-a-ComboBoxEx-bug-ca.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080703/523a8d9b/attachment.txt 


More information about the wine-patches mailing list