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