Hello all!
Could someone out there please enlighten me on how to change the color of the client area of a window on the fly? I am writing a small vector editor and I would like to be able to change the background color, but I'm confused on how to handle the "brush" used in the main window class.
wndclass.hbrBackground = %COLOR_APPWORKSPACE
Should I create a new brush and use SetClassLong() to reassign the background brush? and if so, do I have to delete it?
Cheers!
Could someone out there please enlighten me on how to change the color of the client area of a window on the fly? I am writing a small vector editor and I would like to be able to change the background color, but I'm confused on how to handle the "brush" used in the main window class.
wndclass.hbrBackground = %COLOR_APPWORKSPACE
Should I create a new brush and use SetClassLong() to reassign the background brush? and if so, do I have to delete it?
Cheers!
Comment