From 180bee9ba830b1f3df062a4c7d1207ed6dea0893 Mon Sep 17 00:00:00 2001 From: Catalin Date: Sun, 21 Feb 2016 12:06:50 +0200 Subject: [PATCH] Use slightly safer FindWindowEx() call. --- src/msw/combobox.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 3f71aa2f26..4cfef36eb6 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -394,13 +394,8 @@ WXHWND wxComboBox::GetEditHWNDIfAvailable() const return (WXHWND) ::ChildWindowFromPoint(GetHwnd(), pt); } - // notice that a slightly safer alternative could be to use FindWindowEx() - // but it's not available under WinCE so just take the first child for now - // to keep one version of the code for all platforms and fix it later if - // problems are discovered - // we assume that the only child of the combobox is the edit window - return (WXHWND)::GetWindow(GetHwnd(), GW_CHILD); + return (WXHWND)::FindWindowEx(GetHwnd(), NULL, NULL, NULL); } WXHWND wxComboBox::GetEditHWND() const