From 86a1c34c3ad9294ea31a725407dff630888cf23d Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Sat, 26 Mar 2022 19:33:53 +0100 Subject: [PATCH] HWND_TOPMOST, HWND_NOTOPMOST constants --- core/sys/windows/types.odin | 8 ++++---- 1 file 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