| 46 | static COLORREF nhcolor_to_RGB(int c); |
| 47 | |
| 48 | HWND |
| 49 | mswin_init_map_window() |
| 50 | { |
| 51 | static int run_once = 0; |
| 52 | HWND ret; |
| 53 | DWORD styles; |
| 54 | |
| 55 | if (!run_once) { |
| 56 | register_map_window_class(); |
| 57 | run_once = 1; |
| 58 | } |
| 59 | |
| 60 | styles = WS_CHILD | WS_CLIPSIBLINGS; |
| 61 | if (!GetNHApp()->bHideScrollBars) |
| 62 | styles |= WS_HSCROLL | WS_VSCROLL; |
| 63 | ret = CreateWindow( |
| 64 | szNHMapWindowClass, /* registered class name */ |
| 65 | NULL, /* window name */ |
| 66 | styles, /* window style */ |
| 67 | 0, /* horizontal position of window - set it later */ |
| 68 | 0, /* vertical position of window - set it later */ |
| 69 | 0, /* window width - set it later */ |
| 70 | 0, /* window height - set it later*/ |
| 71 | GetNHApp()->hMainWnd, /* handle to parent or owner window */ |
| 72 | NULL, /* menu handle or child identifier */ |
| 73 | GetNHApp()->hApp, /* handle to application instance */ |
| 74 | NULL); /* window-creation data */ |
| 75 | if (!ret) { |
| 76 | panic("Cannot create map window"); |
| 77 | } |
| 78 | return ret; |
| 79 | } |
| 80 | |
| 81 | void |
| 82 | mswin_map_stretch(HWND hWnd, LPSIZE lpsz, BOOL redraw) |
no test coverage detected