diff options
| author | Pietro Gagliardi <[email protected]> | 2014-10-26 15:15:13 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-10-26 15:15:13 -0400 |
| commit | 335480db7cd6ed97778ef8fef0710e4d68606457 (patch) | |
| tree | e42e175a54ad1e2cde7c99705270987170e387e9 /control_windows.go | |
| parent | ca39a32a90913ce76c21d91fa7773ac3f893e009 (diff) | |
Reimplemented Control.containerShow()/Control.containerHide(). Will be needed to fully move Tab on Windows away from container.
Diffstat (limited to 'control_windows.go')
| -rw-r--r-- | control_windows.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/control_windows.go b/control_windows.go index ffe0222..8661e50 100644 --- a/control_windows.go +++ b/control_windows.go @@ -19,12 +19,18 @@ type controlSingleHWND struct { func newControlSingleHWND(hwnd C.HWND) *controlSingleHWND { c := new(controlSingleHWND) c.controlbase = &controlbase{ - fsetParent: c.xsetParent, - fresize: c.xresize, - fnTabStops: func() int { + fsetParent: c.xsetParent, + fresize: c.xresize, + fnTabStops: func() int { // most controls count as one tab stop return 1 }, + fcontainerShow: func() { + C.ShowWindow(c.hwnd, C.SW_SHOW) + }, + fcontainerHide: func() { + C.ShowWindow(c.hwnd, C.SW_HIDE) + }, } c.hwnd = hwnd return c |
