Skip to content

Commit 1fe6556

Browse files
committed
ZWidgets: disabled SetClientFrame.
On Win32 this function is unused, but it contains two API calls that only exist in Windows 10 or later.
1 parent c622c63 commit 1fe6556

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/ZWidget/src/window/win32/win32window.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ void Win32Window::SetWindowFrame(const Rect& box)
128128

129129
void Win32Window::SetClientFrame(const Rect& box)
130130
{
131+
// This function is currently unused but needs to be disabled because it contains Windows API calls that were only added in Windows 10.
132+
#if 0
131133
double dpiscale = GetDpiScale();
132134

133135
RECT rect = {};
@@ -141,6 +143,7 @@ void Win32Window::SetClientFrame(const Rect& box)
141143
AdjustWindowRectExForDpi(&rect, style, FALSE, exstyle, GetDpiForWindow(WindowHandle));
142144

143145
SetWindowPos(WindowHandle, nullptr, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, SWP_NOACTIVATE | SWP_NOZORDER);
146+
#endif
144147
}
145148

146149
void Win32Window::Show()

0 commit comments

Comments
 (0)