ControlDrawInit (class MKI_DISPLAYDATA) New in Version 2023.0

www.CAD6.com

C++ Syntax

bool

MKI_DISPLAYDATA::ControlDrawInit(

 HWND f_hControl );

 

Initializes the display data for displaying data in a dialog window control. Its background will be filled with the standard background color for a drawing windows.

 

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.

 

Return Value

Returns true if everything it ready for drawing.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH