You can use img_GetWord(handle, index, offset) functions to get the basic widget parameter. The X-position, Y-position, width, and height can be obtained by following offsets: IMAGE_XPOS, IMAGE_YPOS, IMAGE_WIDTH, IMAGE_HEIGHT.

Example:

ypos := img_GetWord(hndl, iStatictext1, IMAGE_YPOS);