summaryrefslogtreecommitdiff
path: root/redo/control_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-14 13:05:31 -0400
committerPietro Gagliardi <[email protected]>2014-08-14 13:05:31 -0400
commitacbe70b4e5688df23e04ac0e55d8515252a52275 (patch)
tree4ad3a6cd2cb7e909dbd6437ffa6b852b09f1561b /redo/control_windows.go
parent2c8bb7bc6d3b5614d53de957b4dca025c53a9cee (diff)
Fixed the infinite loop on Tab control dialog message bug(s) on the Windows backend.
Diffstat (limited to 'redo/control_windows.go')
-rw-r--r--redo/control_windows.go5
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