summaryrefslogtreecommitdiff
path: root/redo/controls_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'redo/controls_windows.go')
-rw-r--r--redo/controls_windows.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/redo/controls_windows.go b/redo/controls_windows.go
index b9c69ed..ecc1494 100644
--- a/redo/controls_windows.go
+++ b/redo/controls_windows.go
@@ -22,9 +22,13 @@ func newWidget(class C.LPCWSTR, style C.DWORD, extstyle C.DWORD) *widgetbase {
// these few methods are embedded by all the various Controls since they all will do the same thing
-func (w *widgetbase) setParent(win C.HWND) {
- C.controlSetParent(w.hwnd, win)
- w.parent = win
+type controlParent struct {
+ hwnd C.HWND
+}
+
+func (w *widgetbase) setParent(win *controlParent) {
+ C.controlSetParent(w.hwnd, win.hwnd)
+ w.parent = win.hwnd
}
func (w *widgetbase) containerShow() {