diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-04 21:33:58 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-04 21:33:58 -0400 |
| commit | 12f7c691d310736e945cd77a943769fbcc5c0635 (patch) | |
| tree | 0c479a9601b45a6119d42c4959fee72264ace03c /redo/container_windows.go | |
| parent | 95815841aa7574f5fd91d11795ceacaa4b7fa5fa (diff) | |
Same as previous commit, but for showing and hiding containers on Windows.
Diffstat (limited to 'redo/container_windows.go')
| -rw-r--r-- | redo/container_windows.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redo/container_windows.go b/redo/container_windows.go index b79a79f..b484094 100644 --- a/redo/container_windows.go +++ b/redo/container_windows.go @@ -57,6 +57,14 @@ 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)) } +func (c *container) show() { + C.ShowWindow(c.hwnd, C.SW_SHOW) +} + +func (c *container) hide() { + C.ShowWindow(c.hwnd, C.SW_HIDE) +} + //export storeContainerHWND func storeContainerHWND(data unsafe.Pointer, hwnd C.HWND) { c := (*container)(data) |
