![]() |
MKI_DialogControlGetText (Dialogs) New in Version 2019.1 |
www.CAD6.com |
C++ Syntaxtemplate <size_t f_unSize> UINT MKI_DialogControlGetText( HWND f_hDlg, __int32 f_nDlgItem, char (&f_rDestin)[f_unSize] );
template <size_t f_unSize> UINT MKI_DialogControlGetText( HWND f_hDlg, __int32 f_nDlgItem, wchar_t (&f_rDestin)[f_unSize] );
A template calling Windows' GetDlgItemTextA or GetDlgItemTextW function with automatically adding a text's maximum length.
Parametersf_hDlg [HWND] Handle of the dialog window. f_DlgItem [__int32] ID of the text control in the dialog window. f_Destin [char[]&] Reference to an Ansi character string or [wchar_t[]&] Reference to an UTF-16 character string that shall received the controls content with a fixed maximum length.
Return ValueReturns the result of GetDlgItemTextA or GetDlgItemTextW, respectively.
|
CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH