News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Always visible window

Started by Faiseur, May 02, 2005, 10:42:43 AM

Previous topic - Next topic

Faiseur

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

French asm Forum: http://www.asmforum.net/   Website: http://www.faiseur.net/

thomasantony

Hi,
  Use SetWindowPos with HWND_TOPMOST along with the co-ordinates. Dunno if it works with Windows+M

Thomas :U
There are 10 types of people in the world. Those who understand binary and those who don't.


Programmer's Directory. Submit for free

Faiseur

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


French asm Forum: http://www.asmforum.net/   Website: http://www.faiseur.net/

Mark Jones

Good to know, thanks Marc. :)
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08