| #include <windows.h> /* required for all Windows applications */ |
| #include "globals.h" /* prototypes specific to this application */ |
| int APIENTRY WinMain(HINSTANCE hInstance, |
| /* Other instances of app running? */ |
| /* stuff to be done once */ |
| if (!InitApplication(hInstance)) |
| /* stuff to be done every time */ |
| if (!InitInstance(hInstance, nCmdShow)) |
| hAccelTable = LoadAccelerators(hInstance, szAppName); |
| /* Acquire and dispatch messages until a WM_QUIT message is received */ |
| while (GetMessage(&msg, NULL, 0, 0)) |
| /* Add other Translation functions (for modeless dialogs |
| and/or MDI windows) here. */ |
| if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) |
| /* Add module specific instance free/delete functions here */ |
| /* Returns the value from PostQuitMessage */ |