Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to highlight a menu item when its position (x and y coordinate) is known

how to highlight a menu item when its position (x and y coordinate) is known

Scheduled Pinned Locked Moved C / C++ / MFC
c++toolstutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 5 Offline
    5 Offline
    5iveboy
    wrote on last edited by
    #1

    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,

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups