Mirror

Show a window "TopMost" - even when it is inactive (Views: 300)


Problem/Question/Abstract:

Show a window "TopMost" - even when it is inactive

Answer:

To show a window above all other windows even when it is not the active window/ active application, use this API call:

SetWindowPos(Form1.handle, HWND_TopMost, 0, 0, 0, 0,
  SWP_NoMove or SWP_NoSize or SWP_ShowWindow);

<< Back to main page