X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0e15042c39a034ef7e2b1441b13bde8c4014669..3371873669823e49ac8b01e67711e453252eaa23:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index c6a03a07cc..bb65134622 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -396,12 +396,9 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg) WXHWND wxComboBox::GetEditHWNDIfAvailable() const { - POINT pt = { 4, 4 }; - WXHWND hWndEdit = (WXHWND)::ChildWindowFromPoint(GetHwnd(), pt); - if ( hWndEdit == GetHWND() ) - hWndEdit = NULL; - - return hWndEdit; + // we assume that the only child of the combobox is the edit window so it's + // unnecessary to pass "EDIT" as class name parameter + return (WXHWND)::FindWindowEx(GetHwnd(), NULL, NULL, NULL); } WXHWND wxComboBox::GetEditHWND() const