Hi....I would like to change the background color of my application.
I know I have to use an API call. Anyone know how to do this? Let's say I would like to change from the grey default to light yellow. Thanks!
Not necessarily, depends upon what language you are using. If you are using VB you can change a forms back color in the properties box in the design environment. You can also do the same thing with Access Forms.
You should handle the WM_ERASEBKGND message yourself instead of letting it be handled by the default window procedure (or, if you want the background color to be static, you could supply a different brush to the WNDCLASS structure).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.