MKI_DialogControlGetPoint (Dialogs) New in Version 2017.0

www.CAD6.com

C++ Syntax

bool

MKI_DialogControlGetPoint(

 HWND f_hDlg,

 __int32 f_nDlgItemX,

 __int32 f_nDlgItemY,

 MKI_POINT_REF f_rPoint )

 

Read a point's x- and y-coordinate from two text or edit controls in a dialog window and converts them to internal coordinates (based on the currently active length unit).

 

Parameters

f_hDlg

[HWND] Handle of the dialog window.

f_nDlgItemX

[__int32] ID of the text control in the dialog window containing the x-coordinate.

f_nDlgItemY

[__int32] ID of the text control in the dialog window containing the y-coordinate.

f_rPoint

[MKI_POINT_REF] Reference to a point that shall received the controls' content in internal [mm] (relative to the internal origin, scale-independent).

 

Return Value

Returns true if both values were successfully read and converted into a valid point. Otherwise, an error message will be displayed to the user and false will be returned.

 

CAD6interface 2025.2 - Copyright 2025 Malz++Kassner® GmbH