|
CMPT 212
Spring 1998
|
HWND hDlg; // dialog box handle.
int WINAPI WinMain(HINSTANCE hThisInst,
HINSTANCE hPrevInst,
LPSTR lpszArgs,
int nWinMode) {
MSG msg;
...
while (GetMessage(&msg, NULL, 0)) {
if (!IsDialogMessage(hDlg, &msg)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
...
}
Return to lecture notes index |
|
| This page is maintained by simpson@cs.sfu.ca. | Last updated on 25 Mar 1998. |