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