From f51a6f6a0c11f2d5ce58bcb858f5dfa1c27299a5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Jun 2001 17:10:33 +0000 Subject: [PATCH] let wxSpinCtrl process the enter key git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/spinctrl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msw/spinctrl.cpp b/src/msw/spinctrl.cpp index 2438d11b72..5e23013cd8 100644 --- a/src/msw/spinctrl.cpp +++ b/src/msw/spinctrl.cpp @@ -248,6 +248,8 @@ bool wxSpinCtrl::Create(wxWindow *parent, if ( style & wxCLIP_SIBLINGS ) msStyle |= WS_CLIPSIBLINGS; + // we want to get WXK_RETURN in order to generate the event for it + m_lDlgCode = DLGC_WANTCHARS; // create the text window m_hwndBuddy = (WXHWND)::CreateWindowEx -- 2.45.2