From 3fea4c984205091bfa3b32e586669a4790d85111 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 28 Apr 2008 11:33:47 +0000 Subject: [PATCH] fix wxEVT_COMMAND_TEXT_ENTER generation in wxSpinCtrl [backport of r53396 from trunk] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 1 + src/msw/spinctrl.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 009aa9dd60..85fd4a59a6 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -166,6 +166,7 @@ wxMSW: - Fixed rendering of borders for wxTextCtrl with wxTE_RICH(2) style when using Windows XP's Classic UI theme. - Text controls with wxTE_RICH style now also generate wxClipboardTextEvents. +- Fixed wxEVT_COMMAND_TEXT_ENTER generation in wxSpinCtrl. - Fixed wxSpinCtrl::GetClientSize() to return sensible value and not just spin button's client size. - Fixed IMPLEMENT_APP() to be compatible with the -WU flag of Borland C++ diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 60f0733a0d..ec9106233e 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -177,7 +177,7 @@ LRESULT APIENTRY _EXPORT wxBuddyTextWndProc(HWND hwnd, case WM_GETDLGCODE: // we want to get WXK_RETURN in order to generate the event for it - return DLGC_WANTCHARS; + return DLGC_WANTARROWS; } return ::CallWindowProc(CASTWNDPROC spin->GetBuddyWndProc(),