Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. Explorer Tree view events

Explorer Tree view events

Scheduled Pinned Locked Moved COM
data-structuresquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khan
    wrote on last edited by
    #1

    Has anyone tried to intercept Windows Explorer (drive/directory) tree view events capture? I want my extension dll to know when the user expands a folder in the tree view of explorer. Is there any way of doing that? Thanks in advance.

    K 1 Reply Last reply
    0
    • K khan

      Has anyone tried to intercept Windows Explorer (drive/directory) tree view events capture? I want my extension dll to know when the user expands a folder in the tree view of explorer. Is there any way of doing that? Thanks in advance.

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      I found the solution. Create an atl com project. Insert "Internet Explorer Object". Do the usual stuff for a BHO. Implement two methods: Invoke() and SetSite(). Then in Invoke, capture the DISPID_NAVIGATECOMPLETE2 event. This runs when user has just changed from one location to another. Find the new location. If it is a local drive etc, then we have it. It does not catch the folder expand, but does catch the event when a folder is opened even in the tree view of explorer. Thanks for reading.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups