MKI_DialogPrint (Dialogs) Changed in Version 2023.1

www.CAD6.com

C++ Syntax

bool

MKI_DialogPrint(

 HWND f_hWindow,

 const LPCWSTR f_pszCaption,

 MKI_PRINT_DATA_REF f_rPrintData,

 __int32 f_nDialogMode );

 

Shows and processes a dialog for print layout editing.

 

Parameters

Window

[HWND] Handle of the dialog window's parent window.

Caption

[const LPCWSTR] Title of the dialog window to be displayed. Be careful that the given title fits into the dialog window's caption.

PrintData

[MKI_PRINT_DATA_REF] Address of a buffer containing the print layout data to be edited.

DialogMode

[__int32] This parameter is a bit-wise OR combination of several flags that disable or hide single settings of this dialog window. By this means, the plug-in can control which settings can be altered by the user. The following flags are defined:

 

MKI_PRINTDIALOG_DEFAULT

Default behaviour of the dialog.

 

MKI_PRINTDIALOG_NOPRINT

If this flag is set, the dialog will not display a "Print" or "Continue" button, only "Close" is available.

 

MKI_PRINTDIALOG_TASK_PDF Renamed in Version 2023.1

If this flag is set, the dialog will only display one tab with the caption "Task". Any editing of non-PDF device data will be disabled.

 

MKI_PRINTDIALOG_TASK_GDI Renamed in Version 2023.1

If this flag is set, the dialog will only display one tab with the caption "Task". Any editing of non-GDI device data will be disabled.

 

Return Value

Returns true if the dialog window was ended by pressing the OK button, else false. Changes in this dialog will always be saved.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH