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

Function MyRegisterClass

Apps/ValidationTests/Win32/App.cpp:178–197  ·  view source on GitHub ↗

FUNCTION: MyRegisterClass() PURPOSE: Registers the window class.

Source from the content-addressed store, hash-verified

176// PURPOSE: Registers the window class.
177//
178ATOM MyRegisterClass(HINSTANCE hInstance)
179{
180 WNDCLASSEXW wcex;
181
182 wcex.cbSize = sizeof(WNDCLASSEX);
183
184 wcex.style = CS_HREDRAW | CS_VREDRAW;
185 wcex.lpfnWndProc = WndProc;
186 wcex.cbClsExtra = 0;
187 wcex.cbWndExtra = 0;
188 wcex.hInstance = hInstance;
189 wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_VALIDATIONTESTSWIN32));
190 wcex.hCursor = LoadCursor(nullptr, IDC_ARROW);
191 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
192 wcex.lpszMenuName = 0;
193 wcex.lpszClassName = szWindowClass;
194 wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));
195
196 return RegisterClassExW(&wcex);
197}
198
199//
200// FUNCTION: InitInstance(HINSTANCE, int)

Callers 1

wWinMainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected