Sign in to follow this  
akira32

VC++,How to modify the BG Color of Dialog

Recommended Posts

Endurion    5408
Check for WM_ERASEBKGND (or OnEraseBkGnd if you're using MFC). You need to handle the message yourself.

In MFC there's a nice function called FillSolidRect. If you're using pure Win32 API you need to create a HBRUSH and do a DrawRect.

If you're using .NET the dialog will have a member for the background color which can simply be set.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this