Valhalla Legends Archive

Programming => General Programming => Topic started by: UserLoser on October 08, 2006, 03:14 PM

Title: Changing color of a window
Post by: UserLoser on October 08, 2006, 03:14 PM
A user can change the background color of a window anytime they wish, upon command, the program calls SetBkColor to change the color of the window.  This works, however, you have to minimize then bring back up the window and the color will change.  I tried RedrawWindow, UpdateColors, UpdateWindow, everything I can think of to do without requiring a minimize and failed.

How to accomplish this efficiently?
Title: Re: Changing color of a window
Post by: MyndFyre on October 08, 2006, 03:47 PM
Have you tried Invalidate()?
Title: Re: Changing color of a window
Post by: UserLoser on October 08, 2006, 11:13 PM
Quote from: MyndFyre[vL] on October 08, 2006, 03:47 PM
Have you tried Invalidate()?

Hmm, InvalidateRect*, and yes it is working thank you.
Title: Re: Changing color of a window
Post by: MyndFyre on October 08, 2006, 11:47 PM
Ahh that's it!  I couldn't find it.  No problem!