Page 1 of 1

Window Background Color

Posted: Thu Sep 28, 2006 3:26 pm
by Konne
Does someone know how PB is changing the Backgroundcolor of a Window?

Posted: Thu Sep 28, 2006 3:51 pm
by Fluid Byte
Either by replacing the default background brush or in a response to a #WM_ERASEBKGND message.

Posted: Thu Sep 28, 2006 4:22 pm
by jqn
Does someone know how PB is changing the Backgroundcolor of a Window?

Code: Select all

SetWindowColor(#Window, Color) 

Posted: Thu Sep 28, 2006 4:31 pm
by Fluid Byte
jqn wrote:
Does someone know how PB is changing the Backgroundcolor of a Window?

Code: Select all

SetWindowColor(#Window, Color) 
Well, I guess he means internally.

Posted: Thu Sep 28, 2006 5:21 pm
by netmaestro
Of the two main options, SetClassLong with a background brush vs. FillRect in response to a #WM_ERASEBKGND message, my sleuthing seems to indicate that it is FillRect. I've no idea what the reasons might be, but I know they think these things out quite thoroughly.

Posted: Fri Sep 29, 2006 5:08 pm
by Konne
It's realy fill rect. (If u delete the PB Callbacksstuff it's not drawing the background anymore. ;)
I guess that's kind of stupid.