Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Sat Aug 02, 2008 6:20 am Post subject: HOWTO : Determine whether context menu is being shown for a shortcut |
|
|
Use the following code in the OnGetMenuItems method of your contextmenu extension
[C#]
if ((e.Flags & LogicNP.EZShellExtensions.QueryContextMenuFlags.VerbsOnly)!=0)
{
// File is shortcut...
}
[VB.Net]
If (e.Flags And LogicNP.EZShellExtensions.QueryContextMenuFlags.VerbsOnly) Then
' File is shortcut...
End If |
|