Commit 11512ff4 authored by chili's avatar chili
Browse files

testing WM_ACTIVATE

parent 7a461c18
...@@ -245,6 +245,23 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex ...@@ -245,6 +245,23 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
case WM_KILLFOCUS: case WM_KILLFOCUS:
kbd.ClearState(); kbd.ClearState();
break; break;
case WM_ACTIVATE:
OutputDebugString( "activeate\n" );
// confine/free cursor on window to foreground/background if cursor disabled
if( !cursorEnabled )
{
if( wParam & WA_ACTIVE )
{
OutputDebugString( "activeate => confine\n" );
ConfineCursor();
}
else
{
OutputDebugString( "activeate => free\n" );
FreeCursor();
}
}
break;
/*********** KEYBOARD MESSAGES ***********/ /*********** KEYBOARD MESSAGES ***********/
case WM_KEYDOWN: case WM_KEYDOWN:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment