aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-03-26 19:46:28 +0100
committerGitHub <noreply@github.com>2022-03-26 19:46:28 +0100
commit87e50e5e4d6bd3692f2e80230840fbcf3e07424c (patch)
tree183aa6a73829f453f7c25ab62f44aaf18b26aefc
parent3f3cc342b4851122b8fbc6a819c10a39b5b9933b (diff)
parent86a1c34c3ad9294ea31a725407dff630888cf23d (diff)
Merge pull request #1660 from Kelimion/hwnd_fix
HWND_TOPMOST, HWND_NOTOPMOST constants
-rw-r--r--core/sys/windows/types.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin
index bd6eba24e..c15f18830 100644
--- a/core/sys/windows/types.odin
+++ b/core/sys/windows/types.odin
@@ -477,10 +477,10 @@ SWP_NOREPOSITION :: SWP_NOOWNERZORDER
SWP_DEFERERASE :: 0x2000 // same as SWP_DEFERDRAWING
SWP_ASYNCWINDOWPOS :: 0x4000 // same as SWP_CREATESPB
-HWND_TOP :: 0
-HWND_BOTTOM :: 1
-HWND_TOPMOST :: -1
-HWND_NOTOPMOST :: -2
+HWND_TOP :: HWND( uintptr(0)) // 0
+HWND_BOTTOM :: HWND( uintptr(1)) // 1
+HWND_TOPMOST :: HWND(~uintptr(0)) // -1
+HWND_NOTOPMOST :: HWND(~uintptr(0) - 1) // -2
CW_USEDEFAULT : c_int : -2147483648