I recently downloaded the Visual Studio 2013 Community Edition after years of using Express editions. This means I can finally use the built-in resource editor again for things like Icons and Dialog Boxes!
Which is awesome, but now I'm trying to do it and I'm struggling to just set the background color of the dialog box. I created it, I set "Use MFC" to False, and I assigned the same Class Name that I set in my WNDCLASS structure (that I then pass to RegisterClassW). This has the desired effect of using the icon I wanted for the dialog! But no matter what I try, I can't get the thing to draw with a default background color. It's always white. From everything I've read, I should just have to set "wc.hbrBackground = (HBRUSH)(COLOR_BACKGROUND + 1);"
But it doesn't work. Nothing I set in wc.hbrBackground seems to have any effect. The only thing that does anything is when I override WM_ERASEBKGND and do a FillRect with a brush from GetSysColorBrush, but I don't want to really do all that. I want to just get the default erase mechanism to paint my window the default gray color of a regular dialog window.
What am I missing...?