| 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; |
no outgoing calls
no test coverage detected