MKI_DialogControlGetText (Dialogs) New in Version 2019.1

www.CAD6.com

C++ Syntax

template <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.

 

Parameters

f_hDlg

[HWND] Handle of the dialog window.

f_nDlgItem

[__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 Value

Returns the result of GetDlgItemTextA or GetDlgItemTextW, respectively.

 

CAD6interface 2026.0 - Copyright 2026 Malz++Kassner® GmbH