Skip to main content
gamedev.net
๐Ÿ”’ Locked

hbrBackground

Started by Yohomyth 2 replies 750+ views
Original Post
Yohomyth
Yohomyth
In Win32 API with C/C++ can you change the background color of a window without changing the window class? ----------------------------------------------- Here comes the Thnikkaman!
------------------------------------------------------------"Many combilations elizagerth. I hope you see my particles." - Senor Cardgage
Tim Cowley
Tim Cowley
Trap WM_ERASEBKGND, PatBlt whatever color you want, and return a nonzero value.
Yohomyth
Yohomyth
quote:
you simply have to assign a value to the hbrBackground member of the window class

quote:
without changing the window class
------------------------------------------------------------"Many combilations elizagerth. I hope you see my particles." - Senor Cardgage

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.