[Q] QueryContextMenu() question...

From: Donovan J. Edye (donovan_at_nospam.edye.wattle.id.au)
Date: 10/26/03


Date: 26 Oct 2003 01:26:00 -0700

G'Day,

I am writing a shell extension and have followed the demo in the ActiveX\ShellExt
directory. However it appears that my context menu only appears when I right mouse
click on DPR file. I would like it to work for any of the following scenarios:

- No files selected
- Once file selected
- Multiple files selected
- All the above should directories be invlolved in the selection

Irrespective of file name and extension. I cannot for the life of me see what is causing
the DPR restriction. I even removed the following IF test which was in the demo with no
success:

  if ((AuFlags and $0000000F) = CMF_NORMAL) or
      ((AuFlags and CMF_EXPLORE) <> 0) then

Can anyone shed any light on this for me?

TIA

-- 
-- Donovan J. Edye
----------------------------------------------------------------------
SetiStats - Get your SETI statistics delivered to your mailbox daily.
http://www.edye.wattle.id.au/p.php?page=/delphi/setistats
---------------------------------------------------------------------- 


Relevant Pages

  • Re: Explorer hangs when browsing files in XP
    ... it hangs as soon as I right click ... context menu entry. ... If not then download a shell extension ... Disable each non microsoft entry one at a time to see if ...
    (microsoft.public.windowsxp.general)
  • Re: How to edit context menu of Windows Explorer (Win XP)
    ... Creating Shell Extension Handlers: ... Ramesh Srinivasan, Microsoft MVP ... To add an additional context menu item in the above location, you'll have to write a shell extension - context menu handler. ...
    (microsoft.public.windowsxp.basics)
  • Re: AVG Free -- where does command come from that says "Scan with AVG Free" in context menu?
    ... .This has a simple activate/deactivate choice.As you mention though,an ... reinstallation or repair (im also assuming thats part of the free AVG ... installer) should put the context scan back where it belongs. ... You are probably right as that .dll is related to shell extension too.On ...
    (alt.comp.anti-virus)
  • Re: Writing Shell Extensions / Extending Explorer Context Menu - XP 64
    ... As I said I would talk with some experienced shell extension developers ... is the same as writing a 32-bit shell extension. ... You can send feedback directly to my manager at: ...
    (microsoft.public.dotnet.general)
  • XP Visual Styles
    ... I've created a context menu shell extension that launches a dialog box when ... dialog box to use XP visual styles. ...
    (microsoft.public.vc.atl)