summaryrefslogtreecommitdiff
path: root/redo/window_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/window_windows.go')
-rw-r--r--redo/window_windows.go3
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: