FUNCTION: MyRegisterClass() PURPOSE: Registers the window class.
| 176 | // PURPOSE: Registers the window class. |
| 177 | // |
| 178 | ATOM MyRegisterClass(HINSTANCE hInstance) |
| 179 | { |
| 180 | WNDCLASSEXW wcex; |
| 181 | |
| 182 | wcex.cbSize = sizeof(WNDCLASSEX); |
| 183 | |
| 184 | wcex.style = CS_HREDRAW | CS_VREDRAW; |
| 185 | wcex.lpfnWndProc = WndProc; |
| 186 | wcex.cbClsExtra = 0; |
| 187 | wcex.cbWndExtra = 0; |
| 188 | wcex.hInstance = hInstance; |
| 189 | wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_VALIDATIONTESTSWIN32)); |
| 190 | wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); |
| 191 | wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); |
| 192 | wcex.lpszMenuName = 0; |
| 193 | wcex.lpszClassName = szWindowClass; |
| 194 | wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); |
| 195 | |
| 196 | return RegisterClassExW(&wcex); |
| 197 | } |
| 198 | |
| 199 | // |
| 200 | // FUNCTION: InitInstance(HINSTANCE, int) |