Connecting Tech Pros Worldwide Forums | Help | Site Map

visual C++ cursor queries

Newbie
 
Join Date: Sep 2008
Posts: 1
#1: Sep 12 '08
I have created a panel in visual basics which has buttons.These buttons when clicked open respective applications to which its directed for eg microsoft word, internet explorer, etc.I have also created a cursor icon through visual c++, which i have linked to the panel.Things have been working quite well till now.But now i have to write a program which has a test loop that increments the x and y coordinates, calls a function that takes the coordinate values as arguements & matches them with the pixel range of the respective button.If there is a match, the button gets clicked & the application opens.
I am a beginner in visual basics & visual c++.I have never tried my hands on it.But have to do it now because my project demands so.Please can anyone help me out?????

Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,366
#2: Sep 12 '08

re: visual C++ cursor queries


Quote:

Originally Posted by akscol

But now i have to write a program which has a test loop that increments the x and y coordinates, calls a function that takes the coordinate values as arguements & matches them with the pixel range of the respective button

You might Google for the HitTest function.
Reply