Hi all.
I create a window using the following:
SetWindowPos( hWnd ,HWND_TOPMOST, x, y, xx, yy, SWP_SHOWWINDOW | SWP_FRAMECHANGED );
Now if any other topmost window (for example Windows Task Manager) is launched the click on that window will bring it to the front. Then clicking on my window will bring the last to the front.
Is it possible to create a window that will always be over other windows which are created later? :)
[Edited after first 2 answers]
Well... I'll ask a question in other way, cause I've not asked a question "can I create most topmost of the top of the most topmost ...... (n+1)*(of the most topmost) window?" :)
Imagine that my application has 2 windows: W1 and W2, and they both are topmost.
All I want is W1 to be always in front of W2.
Of course it is possible having for example some if statements, but I wanna know if it is possible to tell the system to control these windows positions.
[End]
Eugen Podsypalnikov wrote:
Would it be not a case
of a modaless dialog (W1),
created by a window (W2) ?
No, this is not what I ask. "W1" and "W2" are independent from each other, so there should be possibility to operate in W1 while W2 is opened and vise versa/>
thanks in advance