GetDlgItemText function user32
Retrieves the title or text associated with a control in a dialog box.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getdlgitemtextw.
Implementation
Win32Result<int> GetDlgItemText(
HWND hDlg,
int nIDDlgItem,
PWSTR lpString,
int cchMax,
) {
final result_ = GetDlgItemTextW_Wrapper(hDlg, nIDDlgItem, lpString, cchMax);
return .new(value: result_.value.u32, error: result_.error);
}