From 8aae06da5cb46eb7bcdbd9aa39d7d23112ccd320 Mon Sep 17 00:00:00 2001 From: dmex Date: Mon, 6 Aug 2018 09:45:45 +1000 Subject: [PATCH] Add PhGetWindowStyle --- phlib/include/guisup.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/phlib/include/guisup.h b/phlib/include/guisup.h index d68db82f5..ea8e18069 100644 --- a/phlib/include/guisup.h +++ b/phlib/include/guisup.h @@ -75,6 +75,13 @@ VOID PhSetControlTheme( _In_ PWSTR Theme ); +FORCEINLINE LONG_PTR PhGetWindowStyle( + _In_ HWND WindowHandle + ) +{ + return GetWindowLongPtr(WindowHandle, GWL_STYLE); +} + FORCEINLINE VOID PhSetWindowStyle( _In_ HWND Handle, _In_ LONG_PTR Mask,