Possible Duplicate:
How to 开发者_如何学Gopop-up the Windows context menu for a given file using Delphi?
Hello. In Delphi, we can use TShellListView to show files in a component like windows explorer. When i click on an icon in it, it shows a popup menu same as windows explorer. Can i show same menu automatically without using TShellListView?
Example i will write a function like;
ShowFileMenu( 'c:\file.txt' );
and it will show that file's windows explorer menu.
Thanks.
I have answered question like this before. see:
How to pop-up the Windows context menu for a given file using Delphi?
I hope it will help you.
精彩评论