GetDlgItemInt function user32
Translates the text of a specified control in a dialog box into an integer value.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getdlgitemint.
Implementation
Win32Result<int> GetDlgItemInt(
HWND hDlg,
int nIDDlgItem,
Pointer<Int32>? lpTranslated,
bool bSigned,
) {
final result_ = GetDlgItemInt_Wrapper(
hDlg,
nIDDlgItem,
lpTranslated ?? nullptr,
bSigned ? TRUE : FALSE,
);
return Win32Result(value: result_.value.u32, error: result_.error);
}