]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed focus tracking for spin controls (patch from Dimitri)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Apr 2002 09:53:24 +0000 (09:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 20 Apr 2002 09:53:24 +0000 (09:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/spinctrl.cpp

index 22ee0816c994a84e47afdf81fb5cbb32a8c9472f..dbf5cdceef1a3bd91550f85a00294f72ad7b16e3 100644 (file)
@@ -85,9 +85,12 @@ LRESULT APIENTRY _EXPORT wxBuddyTextWndProc(HWND hwnd,
 {
     wxSpinCtrl *spin = (wxSpinCtrl *)::GetWindowLong(hwnd, GWL_USERDATA);
 
-    // forward some messages (the key ones only so far) to the spin ctrl
+    // forward some messages (the key and focus ones only so far) to
+    // the spin ctrl
     switch ( message )
     {
+        case WM_SETFOCUS:
+        case WM_KILLFOCUS:
         case WM_CHAR:
         case WM_DEADCHAR:
         case WM_KEYUP: