| 163 | } |
| 164 | |
| 165 | int APIENTRY wWinMain(_In_ HINSTANCE hInstance, |
| 166 | _In_opt_ HINSTANCE hPrevInstance, |
| 167 | _In_ LPWSTR lpCmdLine, |
| 168 | _In_ int nCmdShow) |
| 169 | { |
| 170 | UNREFERENCED_PARAMETER(hPrevInstance); |
| 171 | UNREFERENCED_PARAMETER(lpCmdLine); |
| 172 | |
| 173 | // TODO: Place code here. |
| 174 | |
| 175 | // Initialize global strings |
| 176 | LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); |
| 177 | LoadStringW(hInstance, IDC_PLAYGROUNDWIN32, szWindowClass, MAX_LOADSTRING); |
| 178 | MyRegisterClass(hInstance); |
| 179 | |
| 180 | // Perform application initialization: |
| 181 | if (!InitInstance(hInstance, nCmdShow)) |
| 182 | { |
| 183 | return FALSE; |
| 184 | } |
| 185 | |
| 186 | HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_PLAYGROUNDWIN32)); |
| 187 | |
| 188 | MSG msg; |
| 189 | |
| 190 | // Main message loop: |
| 191 | while (GetMessage(&msg, nullptr, 0, 0)) |
| 192 | { |
| 193 | if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) |
| 194 | { |
| 195 | TranslateMessage(&msg); |
| 196 | DispatchMessage(&msg); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | return (int)msg.wParam; |
| 201 | } |
| 202 | |
| 203 | // |
| 204 | // FUNCTION: MyRegisterClass() |
nothing calls this directly
no test coverage detected