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
8a97ca31
Commit
8a97ca31
authored
Dec 04, 2018
by
chili
Browse files
1st message pump
parent
e6b418a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
hw3d/WinMain.cpp
View file @
8a97ca31
...
@@ -32,6 +32,14 @@ int CALLBACK WinMain(
...
@@ -32,6 +32,14 @@ int CALLBACK WinMain(
);
);
// show the damn window
// show the damn window
ShowWindow
(
hWnd
,
SW_SHOW
);
ShowWindow
(
hWnd
,
SW_SHOW
);
while
(
true
);
// message pump
MSG
msg
;
while
(
GetMessage
(
&
msg
,
nullptr
,
0
,
0
)
>
0
)
{
TranslateMessage
(
&
msg
);
DispatchMessage
(
&
msg
);
}
return
0
;
return
0
;
}
}
\ No newline at end of file
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