ControlDrawInit (class MKI_DISPLAYDATA) Changed in Version 2026.1

www.CAD6.com

C++ Syntax

bool

MKI_DISPLAYDATA::ControlDrawInit(

 HWND f_hControl,

 bool f_fClear );

 

Initializes the display data for displaying data in a dialog window control.

 

Once successfully initialized, you can use most pixel-based member functions such as MKI_DISPLAYDATA::DrawPixelLine and MKI_DISPLAYDATA::DrawPixelPatch to draw simple elements into the control.

 

Please note that you cannot use coordinate-based functions such as MKI_DISPLAYDATA::DrawCoordinateLine in this context! They will have no effect.

 

After you finished drawing, call MKI_DISPLAYDATA::ControlDrawExit to display the result and free everything.

 

If there is nothing to display at all, use MKI_DrawClear to clear the dialog window control.

 

Parameters

Control

[HWND] Handle of the control to draw to.

Clear New in Version 2026.1

[true] If true, the control's background will be filled with the standard background color for a drawing windows.

 

Return Value

Returns true if everything it ready for drawing.

 

CAD6interface 2026.1 - Copyright 2026 Malz++Kassner® GmbH