If all
else fails, you could create a win32gui based hidden window with a
classname of your choice. pywin32's win32gui_taskbar.py does exactly
this. You would probably need to create this window in its own thread
running a win32gui message pump, so you would need to arrange a way to
communicate with your main wx thread - but it should be able to be made to
work.
As for
changing the wx classname, you would be better off asking a wx
list.
Cheers,
Mark
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of James Hu
Sent: Saturday, 22 October 2005 1:59 PM
To: Gabriel Genellina
Cc: python-win32@python.org
Subject: Re: [python-win32] findwindow by its class name
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of James Hu
Sent: Saturday, 22 October 2005 1:59 PM
To: Gabriel Genellina
Cc: python-win32@python.org
Subject: Re: [python-win32] findwindow by its class name
Thanks,Actually, app A is a commercial engine, which written by VC++, but we can't change it at all.app B is our application, which written by wxPython, If we can't find a way to get the classname of app B, it's no way for app A to send the message to app B , for app A uses classname to get the handler of app B, not it's windows caption. RegisterWindowMessage can't do this job either.Can we register/bind a specific classname for any wxPython application?James
From: Gabriel Genellina [mailto:[EMAIL PROTECTED]
Sent: Fri 10/21/2005 8:18 PM
To: James Hu
Cc: python-win32@python.org
Subject: Re: [python-win32] findwindow by its class nameAt Friday 21/10/2005 16:26, you wrote:
>Thanks a lot! Yes, GetHandle() can return 'wxWindowClassNR', which is
>nice,
>but all wxPython apps return wxWindowClassNR as well, so when I Post
>Message, it goes to itself.
Application A can broadcast a private known message (using
RegisterWindowMessage) including its own HWND; Application B handles it and
replies to A with its own HWND. After that, both apps know the other's
HWND and can post messages.
Gabriel Genellina
Softlab SRL
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32