I have a watchdog timer that checks if a certain window is active (using wxGetActiveWindow). If that window is active it calls Hide() on it. The next time the timer runs (1 sec) it checks to see if the window is still active and, lo and behold, it still is. How can that be? I found this comment on Wine message board:
Recent tests confirm that a hidden window can have an input focus, and
the message test shows that a focus should be moved out of a window
being destroyed.
Is this what happens? wxGetActiveWindow calls (on MSW) GetActiveWindow which is supposed to
The GetActiveWindow function retrieves the window handle to the active window attached to the calling thread's message queue.
Is this the same as the applications foreground window? Regards, max