Migrated stdwndclass_windows.go to the new string handling.

This commit is contained in:
Pietro Gagliardi 2014-06-03 10:52:53 -04:00
parent 05828236ec
commit a46668ca22
2 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@ import (
"unsafe" "unsafe"
) )
const ( var (
stdWndClass = "gouiwnd" stdWndClass = toUTF16("gouiwnd")
) )
var ( var (
@ -139,7 +139,7 @@ var (
func registerStdWndClass() (err error) { func registerStdWndClass() (err error) {
wc := &_WNDCLASS{ wc := &_WNDCLASS{
lpszClassName: uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(stdWndClass))), lpszClassName: utf16ToArg(stdWndClass),
lpfnWndProc: syscall.NewCallback(stdWndProc), lpfnWndProc: syscall.NewCallback(stdWndProc),
hInstance: hInstance, hInstance: hInstance,
hIcon: icon, hIcon: icon,

View File

@ -44,7 +44,7 @@ const controlxstyle = 0
var classTypes = [nctypes]*classData{ var classTypes = [nctypes]*classData{
c_window: &classData{ c_window: &classData{
name: toUTF16(stdWndClass), name: stdWndClass,
style: _WS_OVERLAPPEDWINDOW, style: _WS_OVERLAPPEDWINDOW,
xstyle: 0, xstyle: 0,
storeSysData: true, storeSysData: true,