MKI_WindowSetViewZoom (Display) New in Version 2024.0

www.CAD6.com

C++ Syntax

bool

MKI_WindowSetViewZoom(

 __int32 f_nWindowNum,

 MKI_CONST_ZOOMDEF_REF f_rZoom,

 bool f_fRedraw );

 

Alters the view in the given window so that the given point is in the window's center, and sets the zoom and rotation to the given value.

 

Parameters

WindowNum

[__int32] Zero-based index of the window whose view shall be altered. The windows are numbered in reading direction, i.e. left to right and top to bottom. Valid range: 0 <= Value < MKI_WINDOW_MAX (standard windows) or Value = MKI_WINDOW_VIEW (view window).

Zoom

[MKI_CONST_ZOOMDEF_REF] View display data. Each value may be MKI_DOUBLE_NOVAL or MKI_PAGE_NOVAL, respectively, to indicate "do not change".

The current page will only be changed if the current drawing is in layout mode and WindowNum is not MKI_WINDOW_VIEW.

Redraw

[bool] If true, the window will immediately be redrawn. Otherwise, only the view settings will be changed without redrawing.

 

Return Value

Returns true if successful, false if not.

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH