How to make the window always topmost?
-
Please notice My question is : How to make the window ALWAYS topmost? I make a window, and set it fullscreen, and use ::SetWindowPos to set it topmost style window. But accident happens. 1、when a balloon tooltip shows(like the xp autoupdate prompt that you've downloaded all the updates, you can install it or firewall prompt), the balloon tooltip then runs before my topmost window. 2、When I insert a usb flash disk, because my xp allows autorun, then the autorun window also comes before my topmost window. So is it possible, when the situations above happens, I can still make my window topmost(don't let any prompt comes before my window)? Please give me some hints!
-
Please notice My question is : How to make the window ALWAYS topmost? I make a window, and set it fullscreen, and use ::SetWindowPos to set it topmost style window. But accident happens. 1、when a balloon tooltip shows(like the xp autoupdate prompt that you've downloaded all the updates, you can install it or firewall prompt), the balloon tooltip then runs before my topmost window. 2、When I insert a usb flash disk, because my xp allows autorun, then the autorun window also comes before my topmost window. So is it possible, when the situations above happens, I can still make my window topmost(don't let any prompt comes before my window)? Please give me some hints!
-
There is an article about that, right here at CodeProject. Makes Any Windows Always on Top[^]. Source Code is provided.
Thanks first. I will finger out whether it is what i needed.
-
Please notice My question is : How to make the window ALWAYS topmost? I make a window, and set it fullscreen, and use ::SetWindowPos to set it topmost style window. But accident happens. 1、when a balloon tooltip shows(like the xp autoupdate prompt that you've downloaded all the updates, you can install it or firewall prompt), the balloon tooltip then runs before my topmost window. 2、When I insert a usb flash disk, because my xp allows autorun, then the autorun window also comes before my topmost window. So is it possible, when the situations above happens, I can still make my window topmost(don't let any prompt comes before my window)? Please give me some hints!
You can't, short of doing something like using DirectX in exclusive mode. There's nothing from stopping another program from making its window topmost after you make yours topmost.
--Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen