summaryrefslogtreecommitdiff
path: root/windows_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 /windows_windows.go
parent0d23bda925359ae6d240b25f20dc544207ce8106 (diff)
Changed most instances of var to const in the Windows code. Only one left...
Diffstat (limited to 'windows_windows.go')
-rw-r--r--windows_windows.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/windows_windows.go b/windows_windows.go
index ea848f9..5012170 100644
--- a/windows_windows.go
+++ b/windows_windows.go
@@ -121,14 +121,6 @@ const (
_HWND_TOP = _HWND(0)
)
-// SetWindowPos hWndInsertAfter values that Go won't allow as constants.
-var (
- __HWND_NOTOPMOST = -2
- _HWND_NOTOPMOST = _HWND(__HWND_NOTOPMOST)
- __HWND_TOPMOST = -1
- _HWND_TOPMOST = _HWND(__HWND_TOPMOST)
-)
-
// SetWindowPos uFlags values.
const (
_SWP_DRAWFRAME = 0x0020
@@ -244,7 +236,7 @@ const (
)
// WM_STYLECHANGED and WM_STYLECHANGING values (wParam).
-var ( // var because Go won't let me cast a negative const to a uintptr
+const (
_GWL_EXSTYLE = -20
_GWL_STYLE = -16
)