MImgCtlSetImage
bOk = MImgCtlSetImage( hWndCtl, hImage, bOwn )
bOk = CMImgCtl.SetImage( hImage, bOwn )
Sets an image control's image.
Parameters
hWndCtl
Window Handle: Window Handle of the image control.
hImage
Number: The image handle or 0 to set no image.
bOwn
Boolean: If TRUE, the image control deletes the image automatically when it's no longer needed ( e.g. when the control is destroyed or another image is set ).
Return
Boolean: TRUE if successful or FALSE if an error occured.
Example
Set bOk = MImgCtlSetImage( hWndCtl, hImage, TRUE )
See also
MImgCtlGetImage
Created with the Personal Edition of HelpNDoc: Full-featured EBook editor