GetNextDlgTabItem function user32

Win32Result<HWND> GetNextDlgTabItem(
  1. HWND hDlg,
  2. HWND? hCtl,
  3. bool bPrevious
)

Retrieves a handle to the first control that has the WS_TABSTOP style that precedes (or follows) the specified control.

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

Implementation

Win32Result<HWND> GetNextDlgTabItem(HWND hDlg, HWND? hCtl, bool bPrevious) {
  final result_ = GetNextDlgTabItem_Wrapper(
    hDlg,
    hCtl ?? nullptr,
    bPrevious ? TRUE : FALSE,
  );
  return .new(value: .new(result_.value.ptr), error: result_.error);
}