]> git.saurik.com Git - wxWidgets.git/commitdiff
Alternate fix for #9954 (simple combobox assert) except on WinCE which probably shoul...
authorJulian Smart <julian@anthemion.co.uk>
Thu, 24 Sep 2009 08:36:25 +0000 (08:36 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 24 Sep 2009 08:36:25 +0000 (08:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/combobox.cpp

index 8fbcce2237fc16541b1d0baad54a1035a247cb78..7de89452e5d40b060437750dc02b6a2779c9d92d 100644 (file)
@@ -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