Anybody know an API that simulates what happens when the Shut Down window opens? you know, how the screen behind the window gets darkened?
Printable View
Anybody know an API that simulates what happens when the Shut Down window opens? you know, how the screen behind the window gets darkened?
This might be what you are after
Well, here's one way to do it:
Make a maximized form with no borders or Title bar. Next, use the PaintDesktop function to paing the desktop image (OR use capturescreen). Then, paint a black-white pattern on the form and Piesto!
Oh, and I'm not going to experiment on this anymore. The last time I did it I used EnableWindow and disabled my system.
okay, I don't seem to have a built-in PaintDesktop function, so I assume its an API, maybe i'm wrong...
could you give an example?
It is an API...Code:Public Declare Function PaintDesktop Lib "user32" Alias "PaintDesktop" (ByVal hdc As Long) As Long
and usage??:)
No idea :D
Usage
PaintDesktop Me.hdc
However, that paints ONLY the desktop. It's better to use the GetHDC(0&) to Get the hdc of the screen and use Bitblt to bitblt the contents of the screen to the form.
thanks microbasic, just the desktop is good enought :D