• Welcome to Valhalla Legends Archive.
 

Changing color of a window

Started by UserLoser, October 08, 2006, 03:14 PM

Previous topic - Next topic

UserLoser

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?

MyndFyre

QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

UserLoser

Quote from: MyndFyre[vL] on October 08, 2006, 03:47 PM
Have you tried Invalidate()?

Hmm, InvalidateRect*, and yes it is working thank you.

MyndFyre

Ahh that's it!  I couldn't find it.  No problem!
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.