Hi folks...
I'm in the process of writing (well, playing around, more like) an IDE addin, and I'd like to know if there's an easy way of getting the hWnd of a VBIDE.Window object.
Anybody know how to do this?
I stumbled across these;
Private Declare Function WindowFromAccessibleObject Lib "oleacc" (ByVal pacc As IAccessible, pHwnd As Long) As Long
Private Declare Function IUnknown_GetWindow Lib "shlwapi" Alias "#172" (ByVal pIUnk As IUnknown, ByVal hwnd As Long) As Long
as a supposed way of getting the hWnd of a VBA Userform, but had no luck in applying this technique to my situation.
Ideas?
I'm in the process of writing (well, playing around, more like) an IDE addin, and I'd like to know if there's an easy way of getting the hWnd of a VBIDE.Window object.
Anybody know how to do this?
I stumbled across these;
Private Declare Function WindowFromAccessibleObject Lib "oleacc" (ByVal pacc As IAccessible, pHwnd As Long) As Long
Private Declare Function IUnknown_GetWindow Lib "shlwapi" Alias "#172" (ByVal pIUnk As IUnknown, ByVal hwnd As Long) As Long
as a supposed way of getting the hWnd of a VBA Userform, but had no luck in applying this technique to my situation.
Ideas?