Correct sending of wxW event from wxChoice on MS Smartphone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -4269,18 +4269,27 @@ bool wxWindowMSW::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
||||
|
||||
return GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
#if wxUSE_SPINCTRL && !defined(__WXUNIVERSAL__)
|
||||
else
|
||||
{
|
||||
#if wxUSE_SPINCTRL && !defined(__WXUNIVERSAL__)
|
||||
// the text ctrl which is logically part of wxSpinCtrl sends WM_COMMAND
|
||||
// notifications to its parent which we want to reflect back to
|
||||
// wxSpinCtrl
|
||||
wxSpinCtrl *spin = wxSpinCtrl::GetSpinForTextCtrl(control);
|
||||
if ( spin && spin->ProcessTextCommand(cmd, id) )
|
||||
return true;
|
||||
}
|
||||
#endif // wxUSE_SPINCTRL
|
||||
|
||||
#if wxUSE_CHOICE && defined(__SMARTPHONE__)
|
||||
// the listbox ctrl which is logically part of wxChoice sends WM_COMMAND
|
||||
// notifications to its parent which we want to reflect back to
|
||||
// wxChoice
|
||||
wxChoice *choice = wxChoice::GetChoiceForListBox(control);
|
||||
if ( choice && choice->MSWCommand(cmd, id) )
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user