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

View File

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