From fe56156fb5c4e7024f2bb6dee4efe09de58c5e78 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 24 Sep 2009 08:36:25 +0000 Subject: [PATCH] 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 --- src/msw/combobox.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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