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. Menu item changed event

Menu item changed event

Scheduled Pinned Locked Moved C / C++ / MFC
2 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.
  • G Offline
    G Offline
    gokings
    wrote on last edited by
    #1

    I am using TrackPopupMenu() to display a popup menu and allow a user to make a selection. I would like to have an event occur (have a method called) each time the selected item in the menu changes. In other words, as the user moves the mouse up and down the menu, as a menu item becomes selected (not clicked, simply highlighted), I would like an opportunity to take an action (such as display information regarding what will occur if the user selects that menu option). Thanks

    G 1 Reply Last reply
    0
    • G gokings

      I am using TrackPopupMenu() to display a popup menu and allow a user to make a selection. I would like to have an event occur (have a method called) each time the selected item in the menu changes. In other words, as the user moves the mouse up and down the menu, as a menu item becomes selected (not clicked, simply highlighted), I would like an opportunity to take an action (such as display information regarding what will occur if the user selects that menu option). Thanks

      G Offline
      G Offline
      gokings
      wrote on last edited by
      #2

      I was able to accomplish my goal by handling WM_MENUSELECT; Thanks

      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