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. Using menu key

Using menu key

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 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.
  • _ Offline
    _ Offline
    _Flaviu
    wrote on last edited by
    #1

    Hi. I have a simple app, explorer type, with treeview in left side, and listview in right side. On both of them, I handled OnRClick menu, and they are working fine. It is a possibility to fire them using [^]menu key from keyboard ?

    L J 2 Replies Last reply
    0
    • _ _Flaviu

      Hi. I have a simple app, explorer type, with treeview in left side, and listview in right side. On both of them, I handled OnRClick menu, and they are working fine. It is a possibility to fire them using [^]menu key from keyboard ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What happens when you try it?

      _ 1 Reply Last reply
      0
      • L Lost User

        What happens when you try it?

        _ Offline
        _ Offline
        _Flaviu
        wrote on last edited by
        #3

        Nothing :) ... obviously that I have tried, but the popup menu fired on right click, does nothing when I hit menu key from keyboard ...

        L 1 Reply Last reply
        0
        • _ _Flaviu

          Hi. I have a simple app, explorer type, with treeview in left side, and listview in right side. On both of them, I handled OnRClick menu, and they are working fine. It is a possibility to fire them using [^]menu key from keyboard ?

          J Offline
          J Offline
          Jochen Arndt
          wrote on last edited by
          #4

          Yes, that is possible. You have to handle the appropriate message which is the WM_CONTEXTMENU message (Windows)[^]. That message will be send upon the context menu key press, Shift+F10, and when releasing the right mouse button.

          _ 1 Reply Last reply
          0
          • _ _Flaviu

            Nothing :) ... obviously that I have tried, but the popup menu fired on right click, does nothing when I hit menu key from keyboard ...

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            See Menu key - Wikipedia[^].

            1 Reply Last reply
            0
            • J Jochen Arndt

              Yes, that is possible. You have to handle the appropriate message which is the WM_CONTEXTMENU message (Windows)[^]. That message will be send upon the context menu key press, Shift+F10, and when releasing the right mouse button.

              _ Offline
              _ Offline
              _Flaviu
              wrote on last edited by
              #6

              Perfect ! I have just tested, and is working !! :) Thank you !

              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