Window Background Color

Windows specific forum
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Window Background Color

Post by Konne »

Does someone know how PB is changing the Backgroundcolor of a Window?
Apart from that Mrs Lincoln, how was the show?
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Either by replacing the default background brush or in a response to a #WM_ERASEBKGND message.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
jqn
User
User
Posts: 97
Joined: Fri Oct 31, 2003 3:04 pm

Post by jqn »

Does someone know how PB is changing the Backgroundcolor of a Window?

Code: Select all

SetWindowColor(#Window, Color) 
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post 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.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post 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.
Apart from that Mrs Lincoln, how was the show?
Post Reply