MCPcopy Create free account
hub / github.com/WheretIB/nullc / MyRegisterClass

Function MyRegisterClass

NULLC/translation/win_window_bind.cpp:107–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void MyRegisterClass(const char *className, HINSTANCE hInstance)
108{
109 WNDCLASSEX wcex;
110
111 wcex.cbSize = sizeof(WNDCLASSEX);
112 wcex.style = CS_DBLCLKS;
113 wcex.lpfnWndProc = (WNDPROC)WindowProc;
114 wcex.cbClsExtra = 0;
115 wcex.cbWndExtra = 0;
116 wcex.hInstance = hInstance;
117 wcex.hIcon = NULL;
118 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
119 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW);
120 wcex.lpszMenuName = NULL;
121 wcex.lpszClassName = className;
122 wcex.hIconSm = NULL;
123
124 RegisterClassEx(&wcex);
125}
126
127void __init_win_window_special()
128{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected