ScrollWindow function user32
Scrolls the contents of the specified window's client area.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-scrollwindow.
Implementation
Win32Result<bool> ScrollWindow(
HWND hWnd,
int xAmount,
int yAmount,
Pointer<RECT>? lpRect,
Pointer<RECT>? lpClipRect,
) {
resolveGetLastError();
final result_ = _ScrollWindow(
hWnd,
xAmount,
yAmount,
lpRect ?? nullptr,
lpClipRect ?? nullptr,
);
return .new(value: result_ != FALSE, error: GetLastError());
}