Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 May : XP log-off effect for a form
| Subject: | XP log-off effect for a form |
| Posted by: | "Scout" (toothpas..@farts.com) |
| Date: | Wed, 7 May 2008 20:25:09 +1200 |
Hi,
I have one particular form in my application that I would like to have
repaint itself in a grayscale whenever a modal dialog is shown on top of
it in much the same way that the entire screen is re-rendered in
grayscale when a log-off operation is started in XP.
The reasons why this might me a good or bad idea are not in question.
This form is always displayed full-screen (sort-of maximized, but
without a border so you can't tell)
I'm happy to intercept a paint message, redirect that paint message to
a bitmap, grayscale the bitmap, then blt the result to the screen, but
I'm just not sure where I should do the intercept.
So far, I've tried overriding PaintWindow and get some of the effect
that I'm after, but I can see that the controls are painted to the DC
AFTER PaintWindow so miss the grayscaling.
I figure that it shouldn't be terribly complicated, but being lazy, I
thought it would be easier to ask if anyone has already done this, and
if so, how?
Scout