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

Function wWinMain

Apps/ValidationTests/Win32/App.cpp:137–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
138 _In_opt_ HINSTANCE hPrevInstance,
139 _In_ LPWSTR lpCmdLine,
140 _In_ int nCmdShow)
141{
142 UNREFERENCED_PARAMETER(hPrevInstance);
143 UNREFERENCED_PARAMETER(lpCmdLine);
144
145 // Initialize global strings
146 LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
147 LoadStringW(hInstance, IDC_VALIDATIONTESTSWIN32, szWindowClass, MAX_LOADSTRING);
148 MyRegisterClass(hInstance);
149
150 // Perform application initialization:
151 if (!InitInstance(hInstance, nCmdShow))
152 {
153 return FALSE;
154 }
155
156 HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_VALIDATIONTESTSWIN32));
157
158 MSG msg;
159
160 // Main message loop:
161 while (GetMessage(&msg, nullptr, 0, 0))
162 {
163 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
164 {
165 TranslateMessage(&msg);
166 DispatchMessage(&msg);
167 }
168 }
169
170 return (int)msg.wParam;
171}
172
173//
174// FUNCTION: MyRegisterClass()

Callers

nothing calls this directly

Calls 2

MyRegisterClassFunction · 0.70
InitInstanceFunction · 0.70

Tested by

no test coverage detected