Hi all,
I need, for a program, to show an window alarm for the user. The problem is that this window is not necessarily visible if others are open. I tested by simulating the Windows+M key, which makes it possible to minimize the opened windows, then to show my window, but that does not satisfy me for various reason. How can I proceed in the best way ?
Thank you for your help,
Marc
Hi,
Use SetWindowPos with HWND_TOPMOST along with the co-ordinates. Dunno if it works with Windows+M
Thomas :U
Thank you thomasantony ! That functions very well.
That can be useful to other people. For my tool is:
LOCAL rect:RECT
...
.If eax==WM_INITDIALOG
...
invoke GetWindowRect, hWin, ADDR rect
invoke SetWindowPos, hWin, HWND_TOPMOST,rect.left, rect.top,0,0, SWP_NOSIZE
Good to know, thanks Marc. :)