Originally posted by: Bug Alert
How can i do the always on top trick with a Property Sheet ?
Thanks...
ReplyOriginally posted by: Lisa Goldsmith
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.
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. thakx jim
ReplyOriginally posted by: FrankT
Just do it a bit shorter, without "GetWindowRect()" before.
::SetWindowPos(m_hWnd , // handle to window
HWND_TOPMOST, // placement-order handle
0, // horizontal position, not needed
0, // vertical position, not needed
0, // width, not needed
0, // height, not needed
SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE);
Reply
Originally posted by: Dragan
It's fine , working. Really good.
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?
Could you have advice?
Reply