diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-16 22:31:48 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-16 22:31:48 -0400 |
| commit | 819caea42279fdc0d37b7a55aaeccbd825d2d638 (patch) | |
| tree | cc9de76bf219dc90a0a53b26590caf4bdb1164d0 /redo/window_windows.go | |
| parent | a253f39d68efa0da62ed076735f783deb0069ff3 (diff) | |
Re-added the Windows sizing code.
Diffstat (limited to 'redo/window_windows.go')
| -rw-r--r-- | redo/window_windows.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/redo/window_windows.go b/redo/window_windows.go index 14fa352..9bf0b26 100644 --- a/redo/window_windows.go +++ b/redo/window_windows.go @@ -15,6 +15,8 @@ type window struct { child Control closing *event + + spaced bool } const windowclassname = "gouiwindow" @@ -178,6 +180,7 @@ func windowWndProc(hwnd uintptr, msg t_UINT, wParam t_WPARAM, lParam t_LPARAM) t if res == 0 { panic(fmt.Errorf("error getting client rect for Window in WM_SIZE: %v", err)) } + w.doresize(int(r.right - r.left), int(r.bottom - r.top)) fmt.Printf("new size %d x %d\n", r.right - r.left, r.bottom - r.top) return 0 case c_WM_CLOSE: |
