GetDlgItem function user32
Retrieves a handle to a control in the specified dialog box.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getdlgitem.
Implementation
Win32Result<HWND> GetDlgItem(HWND? hDlg, int nIDDlgItem) {
final result_ = GetDlgItem_Wrapper(hDlg ?? nullptr, nIDDlgItem);
return .new(value: .new(result_.value.ptr), error: result_.error);
}