yysun
asked on
How to add my menu item to the system menu of Win 95/NT ?
After installed winzip, we can find menu item "Add to ZIP" when right click a file in the file explorer or in an open dialog ...
Can I register my own menu item and procedure to the system menu like that?
Can I register my own menu item and procedure to the system menu like that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BoRiS:
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
ASKER
BoRiS:
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
yysum
I'll check it and get right back to you as sson as I figured it out...did it once just got to remember how...
the url for the delphi thngie is:
http://www.inprise.com/devsupport/delphi/qanda/
Later
BoRiS
I'll check it and get right back to you as sson as I figured it out...did it once just got to remember how...
the url for the delphi thngie is:
http://www.inprise.com/devsupport/delphi/qanda/
Later
BoRiS
ASKER
BoRiS:
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
I'm sorry, after try the code you gave me, I found it cannot solve my problem.
What I want is not only to make an association between a file extension with my program. I want add my menu item into the menu of Win95's system menu and call procedure in my EXE or DLL just WinZip did.
I'm looking forward to get more help.
ASKER
BoRiS:
I'm sorry to send the same for several times by wrong.
Waiting for your help. Cheers!
I'm sorry to send the same for several times by wrong.
Waiting for your help. Cheers!
yysun
add this to the code I gave you after the .bor stuff (after reg.closekey;)
reg.OpenKey('\txtfile\shel l\hello',
true);
reg.WriteString('', 'say hello');
reg.OpenKey('\txtfile\shel l\hello\co mmand',
true);
reg.WriteString('',
'C:\Windows\notepad.exe %1');
reg.CloseKey;
this will add a menu item to the popup menu called say hello when you right click on a text file and then when you click on say hello it will open notepad...
just replace what you have to with your names and program names etc...
Later
BoRiS
add this to the code I gave you after the .bor stuff (after reg.closekey;)
reg.OpenKey('\txtfile\shel
true);
reg.WriteString('', 'say hello');
reg.OpenKey('\txtfile\shel
true);
reg.WriteString('',
'C:\Windows\notepad.exe %1');
reg.CloseKey;
this will add a menu item to the popup menu called say hello when you right click on a text file and then when you click on say hello it will open notepad...
just replace what you have to with your names and program names etc...
Later
BoRiS
ASKER
BoRiS:
Thank you again.I think this answer is worth of 100 points.
Thank you again.I think this answer is worth of 100 points.
ASKER
BoRiS:
Are you still there?
The second sample assigns the "Say hello" to .txt file.
How to assign this menu to all typies of files and even several selected file via Shift+right click?
yysun
Are you still there?
The second sample assigns the "Say hello" to .txt file.
How to assign this menu to all typies of files and even several selected file via Shift+right click?
yysun
ASKER
Thank you very much for your help.
Would you also please give me the URL of "the delphi tips and tricks". It sounds a good place to find more code snippets there.