MCPcopy Create free account
hub / github.com/BabylonJS/BabylonNative / wWinMain

Function wWinMain

Apps/Playground/Win32/App.cpp:165–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165int 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()

Callers

nothing calls this directly

Calls 2

MyRegisterClassFunction · 0.70
InitInstanceFunction · 0.70

Tested by

no test coverage detected