MImgCtlSetImagePos
bOk = MImgCtlSetImagePos( hWndCtl, nLeft, nTop )
bOk = CMImgCtl.SetImagePos( nLeft, nTop )
Sets the position of an image control's image.
Parameters
hWndCtl
Window Handle: Window Handle of the image control.
nLeft
Number: Left position in pixels relative to the upper left corner of the image control.
nTop
Number: Top position in pixels relative to the upper left corner of the image control.
Return
Boolean: TRUE if successful or FALSE if an error occured.
Example
bOk = MImgCtlSetImagePos( hWndCtl, 10, 10 )
Remarks
If the align flag MIMG_ALIGN_HCENTER or MIMG_ALIGN_RIGHT is set, the left position set with this function is ignored.
If the align flag MIMG_ALIGN_VCENTER or MIMG_ALIGN_BOTTOM is set, the top position set with this function is ignored.
See also
MImgCtlGetImagePos
MImgCtlSetAlignFlags
Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor