get mouse position on picture

Jan 3, 2011 at 8:38pm
i use borland c++ and have Image1;
i need to get mouse position on Image1->Picture
Jan 3, 2011 at 9:41pm
Ok, have you picked a library yet? I recommend SDL as this is a pretty easy task to do with it.
http://www.libsdl.org/download-1.2.php

If you prefer the straight Windows API I can help with that too but I'll be a little slower getting back to you.
Jan 3, 2011 at 10:33pm
it will be better with Windows Api but if u want SDL - its ok. help me with any of them, please
Last edited on Jan 3, 2011 at 10:34pm
Jan 3, 2011 at 11:35pm
Honestly I can't do better then this guy here: http://www.sdltutorials.com/sdl-tutorial-basics/ for your purposes you only need to go up to the fourth tutorial and I can help you from there. It shouldn't take too long I'll keep checking this thread because there's really no error handeling in his code.
Jan 7, 2011 at 5:58pm
thanks
Topic archived. No new replies allowed.