Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15571

Getting hWnd from VBIDE.Window

$
0
0
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?

Viewing all articles
Browse latest Browse all 15571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>