Results 1 to 2 of 2

Thread: Prevent Windows to redraw all windows if I use SetSysColors

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Posts
    100
    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.

  2. #2
    Addicted Member
    Join Date
    Jan 2008
    Location
    Essex, UK
    Posts
    149

    Re: Prevent Windows to redraw all windows if I use SetSysColors

    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
    Development Enviroment: Visual Studio 2008, VB.NET

    Recommend Winspector, far better then SPY++
    http://www.windows-spy.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width