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
7a4873bb
Commit
7a4873bb
authored
Dec 11, 2018
by
chili
Browse files
where's walto?
parent
7e429cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/WinMain.cpp
View file @
7a4873bb
...
...
@@ -37,6 +37,10 @@ int CALLBACK WinMain(
// TranslateMessage will post auxilliary WM_CHAR messages from key msgs
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
if
(
wnd
.
kbd
.
KeyIsPressed
(
VK_MENU
)
)
{
MessageBox
(
nullptr
,
"Something Happon!"
,
"The alt key was pressed"
,
MB_OK
|
MB_ICONEXCLAMATION
);
}
}
// check if GetMessage call itself borked
...
...
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