Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Clark Lin
hw3d
Commits
11512ff4
Commit
11512ff4
authored
Jul 01, 2019
by
chili
Browse files
testing WM_ACTIVATE
parent
7a461c18
Changes
1
Show whitespace changes
Inline
Side-by-side
hw3d/Window.cpp
View file @
11512ff4
...
...
@@ -245,6 +245,23 @@ LRESULT Window::HandleMsg( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam ) noex
case
WM_KILLFOCUS
:
kbd
.
ClearState
();
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 ***********/
case
WM_KEYDOWN
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment