EnableScrollBar function user32

Win32Result<bool> EnableScrollBar(
  1. HWND hWnd,
  2. int wSBflags,
  3. ENABLE_SCROLL_BAR_ARROWS wArrows
)

Enables or disables one or both scroll bar arrows.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-enablescrollbar.

Implementation

Win32Result<bool> EnableScrollBar(
  HWND hWnd,
  int wSBflags,
  ENABLE_SCROLL_BAR_ARROWS wArrows,
) {
  resolveGetLastError();
  final result_ = _EnableScrollBar(hWnd, wSBflags, wArrows);
  return .new(value: result_ != FALSE, error: GetLastError());
}