From 335480db7cd6ed97778ef8fef0710e4d68606457 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 26 Oct 2014 15:15:13 -0400 Subject: Reimplemented Control.containerShow()/Control.containerHide(). Will be needed to fully move Tab on Windows away from container. --- control_windows.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'control_windows.go') 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 -- cgit v1.2.3