diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 19:46:49 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 19:46:49 -0400 |
| commit | 9ed4ec52597e03b080331efeac526322b669e565 (patch) | |
| tree | 3fbd62fc272409d26ec10b56a7d546dbb9e5bc98 /redo/window_windows.c | |
| parent | 88c01bf69532243f432e03121b922a94d19b0ae1 (diff) | |
Split layout and Window on Windows to use two separate window classes. This is the first half of the two-part migration of the Windows backend to use container.
Diffstat (limited to 'redo/window_windows.c')
| -rw-r--r-- | redo/window_windows.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/redo/window_windows.c b/redo/window_windows.c index 5ed4de9..9cf0654 100644 --- a/redo/window_windows.c +++ b/redo/window_windows.c @@ -60,29 +60,20 @@ DWORD makeWindowWindowClass(char **errmsg) return 0; } -HWND newWindow(LPWSTR title, int width, int height, BOOL child, void *data) +HWND newWindow(LPWSTR title, int width, int height, void *data) { HWND hwnd; - DWORD style; - HWND parent; - style = WS_OVERLAPPEDWINDOW; - parent = NULL; - if (child) { - style = WS_CHILD | WS_VISIBLE; - parent = msgwin; - } hwnd = CreateWindowExW( 0, windowclass, title, - style, + WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, width, height, - parent, NULL, hInstance, data); + NULL, NULL, hInstance, data); if (hwnd == NULL) xpanic("Window creation failed", GetLastError()); - if (!child) - calculateBaseUnits(hwnd); + calculateBaseUnits(hwnd); return hwnd; } |
