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

Function register_message_window_class

win/win32/mhmsgwnd.c:117–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void
118register_message_window_class(void)
119{
120 WNDCLASS wcex;
121 ZeroMemory(&wcex, sizeof(wcex));
122
123 wcex.style = CS_NOCLOSE;
124 wcex.lpfnWndProc = (WNDPROC) NHMessageWndProc;
125 wcex.cbClsExtra = 0;
126 wcex.cbWndExtra = 0;
127 wcex.hInstance = GetNHApp()->hApp;
128 wcex.hIcon = NULL;
129 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
130 wcex.hbrBackground = message_bg_brush
131 ? message_bg_brush
132 : SYSCLR_TO_BRUSH(DEFAULT_COLOR_BG_MSG);
133 wcex.lpszMenuName = NULL;
134 wcex.lpszClassName = szMessageWindowClass;
135
136 RegisterClass(&wcex);
137}
138
139LRESULT CALLBACK
140NHMessageWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Callers 1

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected