From c32e12c3f5f4b8c29e7653b4bf33b36b81bdd41d Mon Sep 17 00:00:00 2001 From: Kyle Burke Date: Tue, 23 Jul 2024 00:09:50 -0500 Subject: [PATCH 1/2] Add `NCCALCSIZE_PARAMS` to `sys/windows` --- core/sys/windows/types.odin | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index e568a7bc7..e32a04cbb 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -1091,6 +1091,11 @@ NMHDR :: struct { code: UINT, // NM_ code } +NCCALCSIZE_PARAMS :: struct { + rgrc: [3]RECT, + lppos: PWINDOWPOS, +} + // Generic WM_NOTIFY notification codes NM_OUTOFMEMORY :: ~uintptr(0) // -1 NM_CLICK :: NM_OUTOFMEMORY-1 // uses NMCLICK struct @@ -2204,6 +2209,7 @@ FILE_TYPE_PIPE :: 0x0003 RECT :: struct {left, top, right, bottom: LONG} POINT :: struct {x, y: LONG} +PWINDOWPOS :: ^WINDOWPOS; WINDOWPOS :: struct { hwnd: HWND, hwndInsertAfter: HWND, From 9d99f98194712b4456b7f2ae7b9d6aafa28ecf4a Mon Sep 17 00:00:00 2001 From: Kyle Burke Date: Tue, 23 Jul 2024 00:22:19 -0500 Subject: [PATCH 2/2] Remove semicolon --- core/sys/windows/types.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sys/windows/types.odin b/core/sys/windows/types.odin index e32a04cbb..cf84dc48c 100644 --- a/core/sys/windows/types.odin +++ b/core/sys/windows/types.odin @@ -2209,7 +2209,7 @@ FILE_TYPE_PIPE :: 0x0003 RECT :: struct {left, top, right, bottom: LONG} POINT :: struct {x, y: LONG} -PWINDOWPOS :: ^WINDOWPOS; +PWINDOWPOS :: ^WINDOWPOS WINDOWPOS :: struct { hwnd: HWND, hwndInsertAfter: HWND,