I need to catch win32ts.WTSRegisterSessionNotification messages.
My app doesn't always have a window open, so I was hoping to use it on
the taskbar icon window. But wx.TaskBarIcon doesn't have a GetHandle().
How do I find the window handle?
An earlier posting contains a procedure that supposedly finds it, but
it does not work:
There is a hidden frame associated with the taskbar icon, but the test in the link above is failing because of the "if handle.GetWindowStyle(): continue" statement. The frame does have a style value of 0.
The other tests (no title and size==(400,250)) in that snippet strike me as rather unsafe, since you can make a frame yourself that matches those parameters simply with wx.Frame(None,style=0), but I don't see anything better to search for.
···
On 3/29/10 11:33 PM, Antonio Gom�z Soto wrote:
Hi,
I need to catch win32ts.WTSRegisterSessionNotification messages.
My app doesn't always have a window open, so I was hoping to use it on
the taskbar icon window. But wx.TaskBarIcon doesn't have a GetHandle().
How do I find the window handle?
An earlier posting contains a procedure that supposedly finds it, but
it does not work: