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

Function register_message_window_class

outdated/sys/wince/mhmsgwnd.c:93–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void
94register_message_window_class()
95{
96 WNDCLASS wcex;
97 ZeroMemory(&wcex, sizeof(wcex));
98
99 wcex.style = CS_NOCLOSE;
100 wcex.lpfnWndProc = (WNDPROC) NHMessageWndProc;
101 wcex.cbClsExtra = 0;
102 wcex.cbWndExtra = 0;
103 wcex.hInstance = GetNHApp()->hApp;
104 wcex.hIcon = NULL;
105 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
106 wcex.hbrBackground = mswin_get_brush(NHW_MESSAGE, MSWIN_COLOR_BG);
107 wcex.lpszMenuName = NULL;
108 wcex.lpszClassName = szMessageWindowClass;
109
110 RegisterClass(&wcex);
111}
112
113LRESULT CALLBACK
114NHMessageWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Callers 1

Calls 2

mswin_get_brushFunction · 0.85
GetNHAppFunction · 0.70

Tested by

no test coverage detected