From: Julian Smart Date: Thu, 24 Sep 2009 08:36:25 +0000 (+0000) Subject: Alternate fix for #9954 (simple combobox assert) except on WinCE which probably shoul... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe56156fb5c4e7024f2bb6dee4efe09de58c5e78?ds=inline Alternate fix for #9954 (simple combobox assert) except on WinCE which probably shouldn't be using a simple combobox anyway git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 8fbcce2237..7de89452e5 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -443,8 +443,16 @@ WXHWND wxComboBox::GetEditHWNDIfAvailable() const // to keep one version of the code for all platforms and fix it later if // problems are discovered +#ifndef __WXWINCE__ + COMBOBOXINFO info; + info.cbSize = sizeof(COMBOBOXINFO); + + GetComboBoxInfo(GetHwnd(), & info); + return info.hwndItem; +#else // we assume that the only child of the combobox is the edit window return (WXHWND)::GetWindow(GetHwnd(), GW_CHILD); +#endif } WXHWND wxComboBox::GetEditHWND() const