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

Function register_main_window_class

win/win32/mhmain.c:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void
101register_main_window_class(void)
102{
103 WNDCLASS wcex;
104
105 ZeroMemory(&wcex, sizeof(wcex));
106 wcex.style = CS_HREDRAW | CS_VREDRAW;
107 wcex.lpfnWndProc = (WNDPROC) MainWndProc;
108 wcex.cbClsExtra = 0;
109 wcex.cbWndExtra = 0;
110 wcex.hInstance = GetNHApp()->hApp;
111 wcex.hIcon = LoadIcon(GetNHApp()->hApp, (LPCTSTR) IDI_NETHACKW);
112 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
113 wcex.hbrBackground = CreateSolidBrush(RGB(0, 0, 0));
114 wcex.lpszMenuName = (TCHAR *) IDC_NETHACKW;
115 wcex.lpszClassName = szMainWindowClass;
116
117 RegisterClass(&wcex);
118}
119
120/*
121 * Keypad keys are translated to the normal values below.

Callers 1

mswin_init_main_windowFunction · 0.70

Calls 2

GetNHAppFunction · 0.70
RGBClass · 0.50

Tested by

no test coverage detected