RE: Get ID/hWnd for active window
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> Feb 14, 2002
- 456 views
> -----Original Message----- > From: akusaya at gmx.net [mailto:akusaya at gmx.net] > How can I get win32lib ID or hWnd of the current active > Window (real Window: create(Window, ...)) > ¯¯¯¯¯¯ > Because it is needed for some API functions like > OpenClipboard(hWnd) > > In VB we can use Me.hWnd variable. You can use getHandle( id ). If you're in an event handler, and need to know the id of the control, you can use getSelf(). Matt Lewis