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

Function RegisterClass

NULLC/includes/window.cpp:114–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void RegisterClass(const char *className, HINSTANCE hInstance)
115 {
116 WNDCLASSEX wcex;
117
118 wcex.cbSize = sizeof(WNDCLASSEX);
119 wcex.style = CS_DBLCLKS;
120 wcex.lpfnWndProc = (WNDPROC)WindowProc;
121 wcex.cbClsExtra = 0;
122 wcex.cbWndExtra = 0;
123 wcex.hInstance = hInstance;
124 wcex.hIcon = NULL;
125 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
126 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW);
127 wcex.lpszMenuName = NULL;
128 wcex.lpszClassName = className;
129 wcex.hIconSm = NULL;
130
131 RegisterClassEx(&wcex);
132 }
133}
134
135#define REGISTER_FUNC(funcPtr, name, index) if(!nullcBindModuleFunction("win.window", (void(*)())NULLCWindow::funcPtr, name, index)) return false;

Callers 1

nullcInitWindowModuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected