summaryrefslogtreecommitdiff
path: root/sysdata_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-12 10:51:27 -0500
committerPietro Gagliardi <[email protected]>2014-02-12 10:51:27 -0500
commit49d0375975b81d0e09120455548370d1a1a9f387 (patch)
treeb8000ccd98b2dfe5fe19b158a7eb9643b3c24111 /sysdata_windows.go
parent3f8fe0e7108c1cd87e177bed22e3307c9df03e63 (diff)
Added initial window size and the Window.SetTitle() function.
Diffstat (limited to 'sysdata_windows.go')
-rw-r--r--sysdata_windows.go6
1 files changed, 3 insertions, 3 deletions
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),