From 4bd5de34eabf3c5431117caf96bb0bf51ad49678 Mon Sep 17 00:00:00 2001 From: hikari Date: Wed, 23 Mar 2022 22:50:27 +0200 Subject: [PATCH] sys/windows: add several of constants --- core/sys/windows/types.odin | 14 ++++++++++++++ core/sys/windows/window_messages.odin | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index d34231ce6..780d9b634 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -397,6 +397,20 @@ SW_FORCEMINIMIZE : c_int : 11 CW_USEDEFAULT : c_int : -2147483648 +SIZE_RESTORED :: 0 +SIZE_MINIMIZED :: 1 +SIZE_MAXIMIZED :: 2 +SIZE_MAXSHOW :: 3 +SIZE_MAXHIDE :: 4 + +WMSZ_LEFT :: 1 +WMSZ_RIGHT :: 2 +WMSZ_TOP :: 3 +WMSZ_TOPLEFT :: 4 +WMSZ_TOPRIGHT :: 5 +WMSZ_BOTTOM :: 6 +WMSZ_BOTTOMLEFT :: 7 +WMSZ_BOTTOMRIGHT :: 8 _IDC_APPSTARTING := rawptr(uintptr(32650)) _IDC_ARROW := rawptr(uintptr(32512)) diff --git a/core/sys/windows/window_messages.odin b/core/sys/windows/window_messages.odin index f0aa76daa..9c3a30088 100644 --- a/core/sys/windows/window_messages.odin +++ b/core/sys/windows/window_messages.odin @@ -1,3 +1,4 @@ +// +build windows package sys_windows WM_NULL :: 0x0000 @@ -1044,4 +1045,4 @@ OCM_CTLCOLORSCROLLBAR :: 0x2137 OCM_CTLCOLORSTATIC :: 0x2138 OCM_PARENTNOTIFY :: 0x2210 WM_APP :: 0x8000 -WM_RASDIALEVENT :: 0xcccd \ No newline at end of file +WM_RASDIALEVENT :: 0xcccd