diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 21:27:35 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 21:27:35 -0400 |
| commit | 95815841aa7574f5fd91d11795ceacaa4b7fa5fa (patch) | |
| tree | a9569fc11ba893880861f797d5a546c7e46534a5 /redo/container_windows.go | |
| parent | 4606f5c2ee732b42140aab159f0a62605082517e (diff) | |
Merged cases of C.moveWindow() on Windows containers to one place (container_windows.go) as a method on container.
Diffstat (limited to 'redo/container_windows.go')
| -rw-r--r-- | redo/container_windows.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/redo/container_windows.go b/redo/container_windows.go index 06fbb5b..b79a79f 100644 --- a/redo/container_windows.go +++ b/redo/container_windows.go @@ -52,6 +52,11 @@ func (c *container) setParent(p *controlParent) { C.controlSetParent(c.hwnd, p.hwnd) } +// this is needed because Windows won't move/resize a child window for us +func (c *container) move(r *C.RECT) { + C.moveWindow(c.hwnd, C.int(r.left), C.int(r.top), C.int(r.right - r.left), C.int(r.bottom - r.top)) +} + //export storeContainerHWND func storeContainerHWND(data unsafe.Pointer, hwnd C.HWND) { c := (*container)(data) |
