| 586 | } |
| 587 | |
| 588 | WORD MyRegisterClass(HINSTANCE hInstance) |
| 589 | { |
| 590 | WNDCLASSEX wcex; |
| 591 | memset(&wcex, 0, sizeof(WNDCLASSEX)); |
| 592 | wcex.cbSize = sizeof(WNDCLASSEX); |
| 593 | wcex.style = 0; |
| 594 | wcex.lpfnWndProc = (WNDPROC)WndProc; |
| 595 | wcex.cbClsExtra = 0; |
| 596 | wcex.cbWndExtra = 0; |
| 597 | wcex.hInstance = hInstance; |
| 598 | wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_SUPERCALC); |
| 599 | wcex.hCursor = LoadCursor(NULL, IDC_ARROW); |
| 600 | wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW); |
| 601 | wcex.lpszMenuName = (LPCTSTR)IDC_SUPERCALC; |
| 602 | wcex.lpszClassName = szWindowClass; |
| 603 | wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL); |
| 604 | |
| 605 | return RegisterClassEx(&wcex); |
| 606 | } |
| 607 | |
| 608 | void AddTabWithFile(const char* filename, HINSTANCE hInstance) |
| 609 | { |