MImgCtlGetScale

The M!Image Custom Control ›› Functions ››
Parent Previous Next

nScale = MImgCtlGetScale( hWndCtl, nWhat )
nScale = CMImgCtl.GetScale( nWhat )

Gets an image control's image scale.

Parameters
hWndCtl
Window Handle: Window Handle of the image control.

nWhat
Number: The scale you want to get. Specify MIMG_SCALE_HORIZONTAL or MIMG_SCALE_VERTICAL.

Return
Number: The scale if successful or 0 if an error occured.

Example
In this example the horizontal scale is determined:

Set nHScale = MImgCtlGetScale( hWndCtl, MIMG_SCALE_HORIZONTAL )

Remarks
This functions gets a scale set with MImgCtlSetScale, not the "real" scale ( can be different with specific fit modes )

See also
MImgCtlSetScale
MImgCtlSetFitMode

Created with the Personal Edition of HelpNDoc: Free HTML Help documentation generator