From 49d0375975b81d0e09120455548370d1a1a9f387 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 12 Feb 2014 10:51:27 -0500 Subject: Added initial window size and the Window.SetTitle() function. --- sysdata_windows.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdata_windows.go') diff --git a/sysdata_windows.go b/sysdata_windows.go index 2d0796e..554ae19 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -52,7 +52,7 @@ func nextID() _HMENU { return cid } -func (s *sysData) make(initText string) (err error) { +func (s *sysData) make(initText string, initWidth int, initHeight int) (err error) { ret := make(chan uiret) defer close(ret) ct := classTypes[s.ctype] @@ -68,8 +68,8 @@ func (s *sysData) make(initText string) (err error) { uintptr(ct.style), uintptr(_CW_USEDEFAULT), // TODO uintptr(_CW_USEDEFAULT), - uintptr(_CW_USEDEFAULT), - uintptr(_CW_USEDEFAULT), + uintptr(initWidth), + uintptr(initHeight), uintptr(_NULL), // TODO parent uintptr(s.cid), uintptr(hInstance), -- cgit v1.2.3