ZoomArea

#include "BIDISP.H"

 

VOID CALLBACK ZoomArea(   HWND                      hWnd,
LPRECT                    lpArea,
LPRECT                    lprScale,
ZOOMFLAG            zoomflg,
LPZOOMSTRUCT   zm,
BOOL                       bMouseScreen,
LPDISPLAYSTRUCT cb)

Description

This function can be used to zoom without user activity. lprScale specifies the actual scaling parameters of the image. The given zoom structure will be initialized for using in the other zoom functions. If bMouseScreen is TRUE the given ptMouse mouse position will be interpreted as screen coordinates, otherwise it will be interpreted as client coordinates.

Parameters

HWND

hWnd

Window handle to display image.

LPRECT

lpArea

Zooming rectangle.

LPRECT

lprScale

The X and Y scaling factor.

ZOOMFLAG

zoomflg

Determines the operation of zoom. The flags
can be

 

ZOOM_SELECT

Select rectangle

 

ZOOM_SELECT_MOVE

Only scroll

 

ZOOM_SELECT_LARGE

Select rectangle or step larger

 

ZOOM_SELECT_SMALL

Select a rectangle or step smaller

 

ZOOM_SELECT_PLUS

Select a rectangle or step about 10 times
smaller than ZOOM_SELECT_LARGE.

 

ZOOM_SELECT_MINUS

Select a rectangle or step about 10 times
smaller than ZOOM_SELECT_SMALL

 

ZOOM_STEP

Select step

 

ZOOM_STEP_CUSTOM

Set custom scale (not step)

 

ZOOM_STEP_LARGE

Not select rectangle and step larger

 

ZOOM_STEP_SMALL

Not select rectangle and step larger

 

ZOOM_STEP_PLUS

Not select a rectangle or step about 10 times
smaller than ZOOM_SELECT_LARGE.

 

ZOOM_STEP_MINUS

Not select a rectangle or step about 10 times
smaller than ZOOM_SELECT_SMALL.

LPZOOMSTRUCT

zm

Zoom structure.

BOOL

bMouseScreen

Interpretation of lpMouse coordinates (TRUE
screen, FALSE client).

LPDISPLAYSTRUCT

cb

Display information structure.

Return values

None.

Requirements

Header :     Declared in BIDisp.h; include BIDisp.h.

Library :    Use BIDisp.lib.

DLLs :       BIDisp.dll.