Migrated stdwndclass_windows.go to the new string handling.
This commit is contained in:
parent
05828236ec
commit
a46668ca22
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue