There were two problems with this method for me. The first was that although the window was on top, it still appeared disabled; the second was that the window was now ALWAYS on top, even if I clicked the frame of another window. A simple solution for both of these issues was simply using the CWnd::SetForegroundWindow() method.
Posted by jimmymjoy
on 03/11/2004 12:41am
in which window event we can use this method so that the demo provided in this article (Making a Window "Always On Top") will work.
You have found way how to set Window on top of the other windows, i.e. change the size, position, and Z order of the window with SetWindowPos() function.
But still I have Q: How to compel other windows to resize below our application?