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 invoke a command in a context menu?

How to invoke a command in a context menu?

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsontutorialquestionlearning
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.
  • E Offline
    E Offline
    ewighell
    wrote on last edited by
    #1

    I am doing secondary programming on a CAD software with its API, and need to execute the command in the context menu of the CAD software programmatically, just like I manully right click a item and select a command. I don't have any clue to do that now, and if it takes too many words to explain, could you please recommend me some material to read.

    Thank you very much!!! ------------------- I am learning C++ and English

    M 1 Reply Last reply
    0
    • E ewighell

      I am doing secondary programming on a CAD software with its API, and need to execute the command in the context menu of the CAD software programmatically, just like I manully right click a item and select a command. I don't have any clue to do that now, and if it takes too many words to explain, could you please recommend me some material to read.

      Thank you very much!!! ------------------- I am learning C++ and English

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      You have to chk that in the CAD api itself to see whether they provide such an extendebility. cheers..Milton KB

      E 1 Reply Last reply
      0
      • M Milton Karimbekallil

        You have to chk that in the CAD api itself to see whether they provide such an extendebility. cheers..Milton KB

        E Offline
        E Offline
        ewighell
        wrote on last edited by
        #3

        Oh, it turned out to be NO, which is also why I ask question here. Because there is no corresponding API, I hoped I could execute the command in the context menu in program to do the same thing as the user dose in interactive environment.

        Thank you very much!!! ------------------- I am learning C++ and English

        M 1 Reply Last reply
        0
        • E ewighell

          Oh, it turned out to be NO, which is also why I ask question here. Because there is no corresponding API, I hoped I could execute the command in the context menu in program to do the same thing as the user dose in interactive environment.

          Thank you very much!!! ------------------- I am learning C++ and English

          M Offline
          M Offline
          Milton Karimbekallil
          wrote on last edited by
          #4

          If the API doesn'tprovide such a functionality, then it is impossible for a user code to inject into another applications binary ( though it is possible to some extent through api hooking and ijecting code, its not that practical). cheers...milton Kb

          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