]> git.saurik.com Git - wxWidgets.git/commitdiff
let wxSpinCtrl process the enter key
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Jun 2001 17:10:33 +0000 (17:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 5 Jun 2001 17:10:33 +0000 (17:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/spinctrl.cpp

index 2438d11b7297eb59af20dbaca27d8d78f085cbc1..5e23013cd84299baf270e3831a4657aac5c5f087 100644 (file)
@@ -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