The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: 0x401000 on July 24, 2009, 05:01:42 PM

Title: Attenuation of the screen
Post by: 0x401000 on July 24, 2009, 05:01:42 PM
How to make a screen effect that happens when you change the desktop theme. The screen as it becomes gray and transparent? Thanks!
Title: Re: Attenuation of the screen
Post by: hutch-- on July 24, 2009, 06:02:49 PM
One way is to0 create a transparent window then set it also as transparent as a window style. Then fade it in and out as you like.
Title: Re: Attenuation of the screen
Post by: 0x401000 on July 24, 2009, 09:49:37 PM
It can be so, but the main window is a color, but everything else is transparent gray.  I think this is the case of windows, may be what some interface.  ::)
Title: Re: Attenuation of the screen
Post by: hutch-- on July 25, 2009, 03:22:24 AM
No, Just create a Window using a hollow brush with an ordinary window to get it transparent. Look at Bill Cravener's example for a window that cane be faded in and out in 256 steps.
Title: Re: Attenuation of the screen
Post by: 0x401000 on July 25, 2009, 11:52:44 AM
I did not want to create a transparent window. I need an effect that presence when you turn off the computer, as well as when changing the style of a desktop. The main window is color, and the rest of the gray area. That example is not quite that. Thank you for your answers! =)
Title: Re: Attenuation of the screen
Post by: Tedd on July 25, 2009, 12:51:00 PM
Create a popup window the size of the desktop, bitblt the screen dc to the window's dc - then you have a copy of the screen to with as you wish.
Get the rect of the window you want to stay in colour, apply your fade/grey effect to all pixels not inside that rect.
Not sure how you'd plug that into shut-down, or changing desktop style.