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. Keeping Menu Open

Keeping Menu Open

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

    I am using TrackPopupMenu to display a dropdown menu from a toolbar button that has an arrow on the right side. Things are working as I expect. The menu is basically a list of items that my user checks on/off. Someone in the office has seen an application where you can click an item in a menu and the menu stays open so the user can "select" multiple menu items and then click off of the menu to close it...they now want this in my app. Any ideas on how to keep the menu from closing after someone makes a selection? thanks in advance cje

    B 1 Reply Last reply
    0
    • C cje

      I am using TrackPopupMenu to display a dropdown menu from a toolbar button that has an arrow on the right side. Things are working as I expect. The menu is basically a list of items that my user checks on/off. Someone in the office has seen an application where you can click an item in a menu and the menu stays open so the user can "select" multiple menu items and then click off of the menu to close it...they now want this in my app. Any ideas on how to keep the menu from closing after someone makes a selection? thanks in advance cje

      B Offline
      B Offline
      bikram singh
      wrote on last edited by
      #2

      You could try setting a WH_GETMESSAGE hook using SetWindowsHookEx() and intercept WM_LBUTTONDOWN ? Bikram Singh

      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