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

hDlg

[HWND] Handle of the dialog window.

DlgItemX

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

DlgItemY

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

Point

[MKI_POINT_REF] Reference to a point that shall received the controls' content in internal millimeters.

 

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.0 - Copyright 2025 Malz++Kassner® GmbH