diff options
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 |
