diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-15 13:07:46 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-15 13:07:46 -0500 |
| commit | 99feed762802516b74ab8b251cf376f3affa6cbb (patch) | |
| tree | 72fdb7c0dd983ed4bf7c45e74b36d161737452cc /sysdata_windows.go | |
| parent | 32e70f64143b840292b4f763ede9585d792aaccb (diff) | |
Removed setting the initial width and height in sysData.make() (this gets rid of the dummy 300x300 sizes from the controls) and added an explicit sysData.setWindowSize() to Window.Open() to ensure everything's sized properly.
Diffstat (limited to 'sysdata_windows.go')
| -rw-r--r-- | sysdata_windows.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdata_windows.go b/sysdata_windows.go index 6d56b83..3f20964 100644 --- a/sysdata_windows.go +++ b/sysdata_windows.go @@ -102,7 +102,7 @@ func (s *sysData) delChild(id _HMENU) { } // TODO adorn error messages with what stage failed? -func (s *sysData) make(initText string, initWidth int, initHeight int, window *sysData) (err error) { +func (s *sysData) make(initText string, window *sysData) (err error) { ret := make(chan uiret) defer close(ret) ct := classTypes[s.ctype] @@ -130,10 +130,10 @@ func (s *sysData) make(initText string, initWidth int, initHeight int, window *s uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(classname))), uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(initText))), style, - uintptr(_CW_USEDEFAULT), // TODO uintptr(_CW_USEDEFAULT), - uintptr(initWidth), - uintptr(initHeight), + uintptr(_CW_USEDEFAULT), + uintptr(_CW_USEDEFAULT), + uintptr(_CW_USEDEFAULT), pwin, uintptr(cid), uintptr(hInstance), |
