summaryrefslogtreecommitdiff
path: root/control_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-26 15:15:13 -0400
committerPietro Gagliardi <[email protected]>2014-10-26 15:15:13 -0400
commit335480db7cd6ed97778ef8fef0710e4d68606457 (patch)
treee42e175a54ad1e2cde7c99705270987170e387e9 /control_windows.go
parentca39a32a90913ce76c21d91fa7773ac3f893e009 (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.go12
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