[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Context menu - shell extensions

Hi,
   I have an ATL component which handles the context menus for file right clicks and perform some tasks. When a file is right-clicked, three options should appear in the pop-up menu. When any of the options is clicked, a function should be invoked. This works fine.
   The problem is, when a shortcut(link to a file) is right clicked, each options appear twice. How do I rectify it? For shortcuts, the option should not occur at all.

Chandra
0
chandrasuresh
Asked:
chandrasuresh
1 Solution
 
jkrCommented:
In 'IShellExt::QueryContextMenu()', evaluate if 'uFlags' contains CMF_VERBSONLY - if so, you're dealing with a shortcut.
0
 
chandrasureshAuthor Commented:
Yeah, it worked
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now