MFC: Stealing Focus from other applications

KevinMU1

Senior member
Sep 23, 2001
673
0
0
Hello all--I have a small problem I can't quite figure out using MFC. I'm using Visual Studio 6.

My question is this... how do I set a window to take the focus from ALL applications and become THE active window with the current keyboard/mouse focus. I tried SetForegroundWindow and SetActiveWindow but these only seem to relate to the existing window of the application, not all of Windows. It is possible that I am using them incorrently.

Anyone have any help/advice to offer? Thanks in advance.