How can I handle right-click of my application itself ?
-
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 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.
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.
-
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.
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