2010. január 25., hétfő

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


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);

1 megjegyzés: