image/bmp on bmp

hi, how do you read cursor (x,y) 'under' extra images (drawn during
running the program). I have a map on the screen, and some pictures on
it, and I want that the program skips these pictures (cursor shows x,y
of map and copyrect shows areas of map).