From: Leo Lee on
I need a window's handle to be passed to external c++.
Thanks in advance


From: Paul McNett on
Leo Lee wrote:
> I need a window's handle to be passed to external c++.
> Thanks in advance

import wx
help(wx.Window.GetHandle)

"""
GetHandle(*args, **kwargs) unbound wx._core.Window method
GetHandle(self) -> long

Returns the platform-specific handle (as a long integer) of the
physical window. On wxMSW this is the win32 window handle, on wxGTK
it is the XWindow ID, and on wxMac it is the ControlRef.
"""

Paul
From: Mike Driscoll on
On Jul 2, 8:40 pm, "Leo Lee" <lxz3...(a)yahoo.com.cn> wrote:
> I need a window's handle to be passed to external c++.
> Thanks in advance

Are you talking about a wxPython wx.Window object or an external
window handle? If the latter, then I recommend asking about that on
the PyWin32 user's group. Otherwise, follow Paul's suggestion.

Mike
From: Leo Lee on
Thank you , Mike.
"Mike Driscoll" <kyosohma(a)gmail.com>
??????:ad849714-c6a9-4308-a997-d6d1d43a915b(a)t54g2000hsg.googlegroups.com...
On Jul 2, 8:40 pm, "Leo Lee" <lxz3...(a)yahoo.com.cn> wrote:
> I need a window's handle to be passed to external c++.
> Thanks in advance

Are you talking about a wxPython wx.Window object or an external
window handle? If the latter, then I recommend asking about that on
the PyWin32 user's group. Otherwise, follow Paul's suggestion.

Mike