In Windows Explorer, you right click on a file, a context menu shows up which contains built-in items like 'Send to...' and/or 3rd party actions such as 'zip file with Winzip'. My question are:
Thank you in advance!
[EDIT]: While other info is absolutely useful, Delphi solution will be much appreciated!
Right-click (or select and hold) on a file or folder to open the context menu. Select Show more options.
Enable classic right-click context menu on Windows 11Open Start on Windows 11. Search for regedit and click the top result to open the Registry. Right-click the CLSID key, select the New menu, and select the Key option. Name the key {86ca1aa0-34aa-4e8b-a509-50c905bae2a2} and press Enter.
The key to obtain the Shell Context menu is use the IContextMenu
interface.
check this great article Shell context menu support
for more details.
UPDATE
for delphi examples you can see the JclShell unit from the JEDI JCL (check the DisplayContextMenu
function) and the ShellCtrls unit included in the samples folder of Delphi.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With