summaryrefslogtreecommitdiff
path: root/uitask_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-25 11:31:57 -0400
committerPietro Gagliardi <[email protected]>2014-05-25 11:31:57 -0400
commiteb0188a0999b7a7c1746b06a6c22e147cf3f1ac6 (patch)
treee16c9021de42396061f3c01bf7205aa62f039b09 /uitask_windows.go
parent0d23bda925359ae6d240b25f20dc544207ce8106 (diff)
Changed most instances of var to const in the Windows code. Only one left...
Diffstat (limited to 'uitask_windows.go')
-rw-r--r--uitask_windows.go6
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))