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

Function register_main_window_class

outdated/sys/wince/mhmain.c:72–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void
73register_main_window_class()
74{
75 WNDCLASS wcex;
76
77 ZeroMemory(&wcex, sizeof(wcex));
78 wcex.style = CS_HREDRAW | CS_VREDRAW;
79 wcex.lpfnWndProc = (WNDPROC) MainWndProc;
80 wcex.cbClsExtra = 0;
81 wcex.cbWndExtra = 0;
82 wcex.hInstance = GetNHApp()->hApp;
83 wcex.hIcon = LoadIcon(GetNHApp()->hApp, (LPCTSTR) IDI_WINHACK);
84 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
85 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
86 wcex.lpszMenuName = NULL;
87 wcex.lpszClassName = szMainWindowClass;
88
89 RegisterClass(&wcex);
90}
91
92/*
93 * Keypad keys are translated to the normal values below.

Callers 1

mswin_init_main_windowFunction · 0.70

Calls 1

GetNHAppFunction · 0.70

Tested by

no test coverage detected