PDA

Click to See Complete Forum and Search --> : Prevent Windows to redraw all windows if I use SetSysColors


rancor
Sep 15th, 2000, 02:54 PM
Hi..

I use SetSysColors to play with the Active caption colors but every time I change the colors Windows redraws every item on the screen and you can se it. It kind of blinks.

appolospb
Dec 4th, 2008, 07:04 AM
There are 2 ways i can think you could get around this issue:

1) Use 'SendMessage(desktophandle, WM_SETREDRAW, True, 0)' to prevent certain desktop items from being re-drawn temporarily.

2) Send the 'WM_SYSCOLORCHANGE' message directly to the window you wish to change the colour off. This will mean only one window colour will change rather than all desktop windows. This may prevent the flicker from occuring