diff options
Diffstat (limited to 'uitask_windows.go')
| -rw-r--r-- | uitask_windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uitask_windows.go b/uitask_windows.go index db9aa24..621c1fc 100644 --- a/uitask_windows.go +++ b/uitask_windows.go @@ -133,8 +133,8 @@ const ( msghandlerclass = "gomsghandler" ) -var ( - // fron winuser.h; var because Go won't let me +const ( + // fron winuser.h _HWND_MESSAGE = -3 ) @@ -162,7 +162,7 @@ func makeMessageHandler() (hwnd _HWND, err error) { uintptr(_CW_USEDEFAULT), uintptr(_CW_USEDEFAULT), uintptr(_CW_USEDEFAULT), - uintptr(_HWND_MESSAGE), + negConst(_HWND_MESSAGE), uintptr(_NULL), uintptr(hInstance), uintptr(_NULL)) |
