MImgCtlSizeToContents

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

bOk = MImgCtlSizeToContents( hWndCtl )
bOk = CMImgCtl.SizeToContents( )

Sizes an image control so that it's contents ( = image and/or text ) is completely visible.

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

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

Example

Set bOk = MImgCtlSizeToContents( hWndCtl )

See also
MImgCtlGetContentsExtent

Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents