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. Emulate the context menu key on the keyboard?

Emulate the context menu key on the keyboard?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • M Offline
    M Offline
    Maxwell Chen
    wrote on last edited by
    #1

    There is the Context-Menu key on the keyboard. It works as user right-clicking the mouse. If I have to emulate this key down / up, what message should I send? Thanks.

    Maxwell Chen

    I 1 Reply Last reply
    0
    • M Maxwell Chen

      There is the Context-Menu key on the keyboard. It works as user right-clicking the mouse. If I have to emulate this key down / up, what message should I send? Thanks.

      Maxwell Chen

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      Well, I don't know the answer to your question. But I know who does... Your own PC, and Spy++. Run (eg), notepad. Run spy++ and monitor messages. Press the context-menu key. Let go of it. Go look at spy++! Iain.

      I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

      M 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        Well, I don't know the answer to your question. But I know who does... Your own PC, and Spy++. Run (eg), notepad. Run spy++ and monitor messages. Press the context-menu key. Let go of it. Go look at spy++! Iain.

        I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

        M Offline
        M Offline
        Maxwell Chen
        wrote on last edited by
        #3

        Thanks! They are: WM_KEYDOWN, VK_APPS WM_KEYUP, VK_APPS But not working in my code... :sigh:

        Maxwell Chen

        I 1 Reply Last reply
        0
        • M Maxwell Chen

          Thanks! They are: WM_KEYDOWN, VK_APPS WM_KEYUP, VK_APPS But not working in my code... :sigh:

          Maxwell Chen

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          An alternative for you is to send the WM_CNTEXTMENU[^] message instead...? Good luck, Iain.

          I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

          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