David Olsson
2005-01-03 12:01:15 UTC
Hello!
I'm trying to place a window on top of all other windows without making
it active. I have made attempt with the SetWindowPos API call:
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE |
SWP_NOMOVE | SWP_NOSIZE);
This, however, appears to have no effect. If I remove the SWP_NOACTIVATE
flag, the window is moved to the top. It does however (obviously) get
activated which is something I, in this case, do not want. Am I missing
something? Or there is another API call which provides the functionality
I am looking for?
I'm trying to place a window on top of all other windows without making
it active. I have made attempt with the SetWindowPos API call:
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE |
SWP_NOMOVE | SWP_NOSIZE);
This, however, appears to have no effect. If I remove the SWP_NOACTIVATE
flag, the window is moved to the top. It does however (obviously) get
activated which is something I, in this case, do not want. Am I missing
something? Or there is another API call which provides the functionality
I am looking for?