1. RE: Get ID/hWnd for active window

Try getHandle(integer controlID)

Jonas
akusaya at gmx.net wrote:
> 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.
> 
> Thanks!
> 
>

new topic     » topic index » view message » categorize

2. RE: Get ID/hWnd for active window

> -----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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu