From b00d322c5fc7e275244a7848b735f7f93fec5791 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Wed, 25 Sep 2024 17:00:42 +0100 Subject: tdf#160837 win: Move SetMaximizedFrameGeometry to WinSalFrame Turn the previously static helper function SetMaximizedFrameGeometry into a WinSalFrame method. It requires write access to the maGeometry member, which is currently still, but soon no longer public. Change-Id: Iceef8a5366e6f4f5bf2163011651ee99ee908b2a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173958 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- vcl/inc/win/salframe.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/inc/win') diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index e465eb1350b1..21700c0fccba 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -147,6 +147,7 @@ public: virtual bool GetUseReducedAnimation() const override; constexpr vcl::WindowState state() const { return m_eState; } + void SetMaximizedFrameGeometry(HWND hWnd, RECT* pParentRect = nullptr); void UpdateFrameState(); constexpr bool isFullScreen() const { return bool(m_eState & vcl::WindowState::FullScreen); } -- cgit