diff options
| author | Pietro Gagliardi <[email protected]> | 2014-06-03 11:04:31 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-06-03 11:04:31 -0400 |
| commit | 33d417886563dad94b936a791d3512dc1818fe48 (patch) | |
| tree | 64bcf93df8d61d2a771dd494407252bf7219b884 /area_windows.go | |
| parent | ea95d5559de8017300994c2866f3edb1578e717c (diff) | |
Migrated area_windows.go to the new string handling. I think that's it for converting existing code... Now to test on real Windows.
Diffstat (limited to 'area_windows.go')
| -rw-r--r-- | area_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/area_windows.go b/area_windows.go index ace3cba..60f4e13 100644 --- a/area_windows.go +++ b/area_windows.go @@ -14,8 +14,8 @@ const ( areaxstyle = 0 | controlxstyle ) -const ( - areaWndClass = "gouiarea" +var ( + areaWndClass = toUTF16("gouiarea") ) func getScrollPos(hwnd _HWND) (xpos int32, ypos int32) { @@ -690,7 +690,7 @@ func areaWndProc(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam _LPARAM) _LRESU func registerAreaWndClass() (err error) { wc := &_WNDCLASS{ style: _CS_HREDRAW | _CS_VREDRAW, // no CS_DBLCLKS because do that manually - lpszClassName: uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(areaWndClass))), + lpszClassName: utf16ToArg(areaWndClass), lpfnWndProc: syscall.NewCallback(areaWndProc), hInstance: hInstance, hIcon: icon, |
