MCPcopy Create free account
hub / github.com/NetHack/NetHack / register_status_window_class

Function register_status_window_class

win/win32/mhstatus.c:158–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void
159register_status_window_class(void)
160{
161 WNDCLASS wcex;
162 ZeroMemory(&wcex, sizeof(wcex));
163
164 wcex.style = CS_NOCLOSE;
165 wcex.lpfnWndProc = (WNDPROC) StatusWndProc;
166 wcex.cbClsExtra = 0;
167 wcex.cbWndExtra = 0;
168 wcex.hInstance = GetNHApp()->hApp;
169 wcex.hIcon = NULL;
170 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
171 wcex.hbrBackground = NULL;
172 wcex.lpszMenuName = NULL;
173 wcex.lpszClassName = szStatusWindowClass;
174
175 RegisterClass(&wcex);
176}
177
178LRESULT CALLBACK
179StatusWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Callers 1

mswin_init_status_windowFunction · 0.70

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected