News:

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

Attenuation of the screen

Started by 0x401000, July 24, 2009, 05:01:42 PM

Previous topic - Next topic

0x401000

How to make a screen effect that happens when you change the desktop theme. The screen as it becomes gray and transparent? Thanks!

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

0x401000

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.  ::)

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

0x401000

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! =)

Tedd

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.
No snowflake in an avalanche feels responsible.