Adding the "subwin" demo to the MSVC 6.0 workspace, in both static and dynamic config...
[freeglut] / src / freeglut_main.c
index 9002d1c..7fba2dd 100644 (file)
@@ -1921,6 +1921,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
             fgUpdateMenuHighlight( window->ActiveMenu );
             break;
         }
+        SetFocus(window->Window.Handle);
 
         fgState.Modifiers = fghGetWin32Modifiers( );