Removed CW_USEDEFAULT variable definition. It won't compile right now, but our cgo-based generator will make sure that isn't a problem.
This commit is contained in:
parent
5583dee743
commit
2ce95f3937
|
@ -164,10 +164,10 @@ func (s *sysData) make(window *sysData) (err error) {
|
||||||
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(classname))),
|
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(classname))),
|
||||||
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(""))), // we set the window text later
|
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(""))), // we set the window text later
|
||||||
style,
|
style,
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
pwin,
|
pwin,
|
||||||
uintptr(cid),
|
uintptr(cid),
|
||||||
uintptr(hInstance),
|
uintptr(hInstance),
|
||||||
|
|
|
@ -158,10 +158,10 @@ func makeMessageHandler() (hwnd _HWND, err error) {
|
||||||
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(msghandlerclass))),
|
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(msghandlerclass))),
|
||||||
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr("ui package message window"))),
|
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr("ui package message window"))),
|
||||||
uintptr(0),
|
uintptr(0),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
uintptr(_CW_USEDEFAULT),
|
negConst(_CW_USEDEFAULT),
|
||||||
negConst(_HWND_MESSAGE),
|
negConst(_HWND_MESSAGE),
|
||||||
uintptr(_NULL),
|
uintptr(_NULL),
|
||||||
uintptr(hInstance),
|
uintptr(hInstance),
|
||||||
|
|
|
@ -69,10 +69,8 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// bizarrely, this value is given on the page for CreateMDIWindow, but not CreateWindow or CreateWindowEx
|
// bizarrely, this value is given on the page for CreateMDIWindow, but not CreateWindow or CreateWindowEx
|
||||||
// I do it this way because Go won't let me shove the exact value into an int
|
const (
|
||||||
var (
|
_CW_USEDEFAULT = 0x80000000
|
||||||
__CW_USEDEFAULT uint = 0x80000000
|
|
||||||
_CW_USEDEFAULT = int(__CW_USEDEFAULT)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetSysColor values. These can be cast to HBRUSH (after adding 1) for WNDCLASS as well.
|
// GetSysColor values. These can be cast to HBRUSH (after adding 1) for WNDCLASS as well.
|
||||||
|
|
Loading…
Reference in New Issue