X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b65f16dabd945d95f98809fb78c8d60a08930ac4..bd2e08d06528b2014a4acf878e91fee4696d0666:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 836db69131..71e4192405 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -394,9 +394,13 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg) WXHWND wxComboBox::GetEditHWNDIfAvailable() const { - // 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); + // 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); } WXHWND wxComboBox::GetEditHWND() const