use FindWindowEx() instead of ChildWindowFromPoint() in wxComboBox::GetEditHWNDIfAvailable(), this should find the child edit control whatever is the combobox size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -396,12 +396,9 @@ bool wxComboBox::MSWShouldPreProcessMessage(WXMSG *pMsg)
|
|||||||
|
|
||||||
WXHWND wxComboBox::GetEditHWNDIfAvailable() const
|
WXHWND wxComboBox::GetEditHWNDIfAvailable() const
|
||||||
{
|
{
|
||||||
POINT pt = { 4, 4 };
|
// we assume that the only child of the combobox is the edit window so it's
|
||||||
WXHWND hWndEdit = (WXHWND)::ChildWindowFromPoint(GetHwnd(), pt);
|
// unnecessary to pass "EDIT" as class name parameter
|
||||||
if ( hWndEdit == GetHWND() )
|
return (WXHWND)::FindWindowEx(GetHwnd(), NULL, NULL, NULL);
|
||||||
hWndEdit = NULL;
|
|
||||||
|
|
||||||
return hWndEdit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
WXHWND wxComboBox::GetEditHWND() const
|
WXHWND wxComboBox::GetEditHWND() const
|
||||||
|
Reference in New Issue
Block a user