wxSpinCtrl now sens TEXT_UPDATED events as in wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-12-21 02:12:22 +00:00
parent 58d5bf3ae2
commit 6fe190576e
4 changed files with 92 additions and 15 deletions

View File

@@ -71,6 +71,10 @@
#include "wx/caret.h"
#endif // wxUSE_CARET
#if wxUSE_SPINCTRL
#include "wx/spinctrl.h"
#endif // wxUSE_SPINCTRL
#include "wx/intl.h"
#include "wx/log.h"
@@ -3227,6 +3231,17 @@ bool wxWindow::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
return GetEventHandler()->ProcessEvent(event);
}
#if wxUSE_SPINCTRL
else
{
// 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
return FALSE;
}