MImgCtlGetImagePos

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

bOk = MImgCtlGetImagePos( hWndCtl, nrLeft, nrTop )
bOk = CMImgCtl.GetImagePos( nrLeft, nrTop )

Gets the position of an image control's image.

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

nrLeft
Receive Number: Left position in pixels relative to the upper left corner of the image control.

nrTop
Receive 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 = MImgCtlGetImagePos( hWndCtl, nLeft, nTop )

Remarks
This function gets the position that was set with MImgCtlSetImagePos, not the "real" position ( can be different with specific align flags )

See also
MImgCtlSetImagePos
MImgCtlSetAlignFlags

Created with the Personal Edition of HelpNDoc: Easily create iPhone documentation