how to highlight a menu item when its position (x and y coordinate) is known
-
Dear programmers, We use a device to provide X and Y coordinates similar to a mouse. Using VC++ I create a very small dialog box and refresh its position using the SetWindowPos funtion (at a rate of 120 HZ and setting it as TopMost window). I can also left-click by bringing the mouse to the corner of the small dialog's position and clicking and sending back the mouse cursor to its original position. This way I fully simulate a mouse cursor. Everything works perfect. Except when the window clicks on a menu (i.e. File, Edit, View, Tools, ...). Then the menu that contains all the menu items covers the small dialog box and user cannot see where they are pointing at. Is there anyway I can highlight menu items when the position of my small dialg box is within the menu item's region? Just like when the mouse moves over the menu item? By the way, remember that the menu item is not a part of my program. It can be in any program. This is the last part of my project. PLEASE PLEASE if you can think of a solution let me know. I have worked on this project for 4 months. I can further explain the program if you want. Thank you in advance,