-3

I have 2 HWND_TOPMOST windows, among which I wanted to maintain 1 window always on top for sometime, is there a way we can bring a window to the top of the other topmost windows ?

I just tried below option, just catch when my window goes out of focus by other window & trying to take it to foreground but it is not working at all.

case WM_KILLFOCUS:
{
  //tried below all options 
    ::BringWindowToTop(hWnd):  
    ::SetForegroundWindow(hWnd);
    ::SetFocus(hWnd);
    ::SetActiveWindow(hWnd);
}

please do suggest some way to achieve this..

NDestiny
  • 1,133
  • 1
  • 12
  • 28

1 Answers1

0

No, there is no solution for this. You should read the rationale and explanation from the Windows developer, Raymond Chen, here:

How do I create a topmost window that is never covered by other topmost windows?

jschroedl
  • 4,916
  • 3
  • 31
  • 46