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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I handle right-click of my application itself ?

How can I handle right-click of my application itself ?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++linux
3 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.
  • S Offline
    S Offline
    SherTeks
    wrote on last edited by
    #1

    I have an end application (say Click.exe) which is placed on my desktop. Now, I want to handle the Right click event of this exe itself ie. if I right-click on the exe, I must be able to see a customized menu. I know I don't have any control over the application Click.exe as such because it is not yet started (ie. double-clicked). Is this possible preferably by any VC++ way of handling events. Any other solution like shell scripting ideas are also welcome. Thanks in advance.

    I N 2 Replies Last reply
    0
    • S SherTeks

      I have an end application (say Click.exe) which is placed on my desktop. Now, I want to handle the Right click event of this exe itself ie. if I right-click on the exe, I must be able to see a customized menu. I know I don't have any control over the application Click.exe as such because it is not yet started (ie. double-clicked). Is this possible preferably by any VC++ way of handling events. Any other solution like shell scripting ideas are also welcome. Thanks in advance.

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

      It's a rather brute force approach, but you could set a context menu handler (See Michael Dunn's superb shell series) for all exe, but only bother putting up for option if the file being right clicked on is called click.exe. There are weak points to the idea - renaming, must be at least a partial admin to install shell extensions, what if the user makes a shortcut for the exe [*]? Iain. [*] I have a suspicion that the system resolves shortcuts for extensions for this very reason, but you'd have to check.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      1 Reply Last reply
      0
      • S SherTeks

        I have an end application (say Click.exe) which is placed on my desktop. Now, I want to handle the Right click event of this exe itself ie. if I right-click on the exe, I must be able to see a customized menu. I know I don't have any control over the application Click.exe as such because it is not yet started (ie. double-clicked). Is this possible preferably by any VC++ way of handling events. Any other solution like shell scripting ideas are also welcome. Thanks in advance.

        N Offline
        N Offline
        Nibu babu thomas
        wrote on last edited by
        #3

        SherTeks wrote:

        Now, I want to handle the Right click event of this exe itself ie. if I right-click on the exe, I must be able to see a customized menu.

        Is this what you are look for... http://www.codeproject.com/KB/shell/shellextguide1.aspx[^]

        Nibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com

        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