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
This commit is contained in:
parent
cc3fcdff18
commit
fe56156fb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user