MImgCtlGetContentsExtent

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

bOk = MImgCtlGetContentsExtent( hWndCtl, nrWidth, nrHeight )
bOk = CMImgCtl.GetContentsExtent( nrWidth, nrHeight )

Gets the extent of an image control's contents ( = image and/or text ).

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

nrWidth
Receive Number: The width of the contents.

nrHeight
Receive Number: The height of the contents.

Return
Boolean: TRUE if successful or FALSE if an error occurs.

Example

Set bOk = MImgCtlGetContentsExtent( hWndCtl, nWidth, nHeight )

See also
MImgCtlSizeToContents

Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease