Hook into a child class SysTreeView32 of VBE window
问题 I am pretty new to the WinApi calls although familiar with VBA. What I am trying to do is to hook to a child class SysTreeView32 of VBE window (Project Explorer TreeView). I would like to expand/collapse the tree view elements by modifying the registry keys (or alternatively sending the mouse clicks (mouse_event) although I prefer the first option). I can find the Excel Main Window by using this code: Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String,