CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    May 2008
    Posts
    24

    [RESOLVED] Emulating an Explorer double click from within my own app

    Hi all. I am writing an application in wxWidgets for XP and Vista. Part of this application includes a tree control listing some files on the drive.

    What I want to be able to do is when I trap a double click event on one of my tree items, I want to "open" that file in the same fashion that Explorer would use if the user dbl clicked on the same file.

    My background is in UNIX so I'm slow with Windows-specific stuff. So far all I've figured out how to do is lookup in the registry the PersistentHandler for my file based on the extension.

    The PersistentHandler is some ID I guess. How can I get the actual executable fullpathname from this ID?


    Edit: Is there an easier way (some unknown Win func call?) for me to just have Windows sort all this out for me or is all this lookup in the registry the best way? E.g., ExplorerExecute(myFile)? That would be too easy.

    -gw
    Last edited by spartygw; May 2nd, 2008 at 03:12 PM. Reason: Add more info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured