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

Function register_status_window_class

outdated/sys/wince/mhstatus.c:59–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void
60register_status_window_class()
61{
62 WNDCLASS wcex;
63
64 ZeroMemory(&wcex, sizeof(wcex));
65 wcex.style = CS_NOCLOSE;
66 wcex.lpfnWndProc = (WNDPROC) StatusWndProc;
67 wcex.cbClsExtra = 0;
68 wcex.cbWndExtra = 0;
69 wcex.hInstance = GetNHApp()->hApp;
70 wcex.hIcon = NULL;
71 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
72 wcex.hbrBackground = mswin_get_brush(NHW_STATUS, MSWIN_COLOR_BG);
73 wcex.lpszMenuName = NULL;
74 wcex.lpszClassName = szStatusWindowClass;
75
76 RegisterClass(&wcex);
77}
78
79LRESULT CALLBACK
80StatusWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Callers 1

mswin_init_status_windowFunction · 0.70

Calls 2

mswin_get_brushFunction · 0.85
GetNHAppFunction · 0.70

Tested by

no test coverage detected