diff options
Diffstat (limited to 'redo/control_windows.go')
| -rw-r--r-- | redo/control_windows.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redo/control_windows.go b/redo/control_windows.go index 49ac644..564d8d4 100644 --- a/redo/control_windows.go +++ b/redo/control_windows.go @@ -11,11 +11,12 @@ type controlPrivate interface { } type controlParent struct { - hwnd C.HWND + c *container } func basesetParent(c controlPrivate, p *controlParent) { - C.controlSetParent(c.hwnd(), p.hwnd) + C.controlSetParent(c.hwnd(), p.c.hwnd) + p.c.nchildren++ } // don't specify basepreferredSize; it is custom on ALL controls |
