AdjustWindowRectExForDpi function user32
Calculates the required size of the window rectangle, based on the desired size of the client rectangle and the provided DPI. This window rectangle can then be passed to the CreateWindowEx function to create a window with a client area of the desired size.
BOOL AdjustWindowRectExForDpi(
LPRECT lpRect,
DWORD dwStyle,
BOOL bMenu,
DWORD dwExStyle,
UINT dpi
);
Implementation
int AdjustWindowRectExForDpi(
Pointer<RECT> lpRect, int dwStyle, int bMenu, int dwExStyle, int dpi) =>
_AdjustWindowRectExForDpi(lpRect, dwStyle, bMenu, dwExStyle, dpi);