I'm trying to create a dialog that looks more or less like this:
So in other words, I'd like it to be one solid color, with the seamless non-client area, and standard-looking non-client controls (close, minimize, etc.).
I imagine that that particular dialog uses some very custom rendering and custom controls, but I'm trying to achieve a similar effect using DwmExtendFrameIntoClientArea
and the techniques described here. So in other words, I'd like to preserve the standard non-client controls provided by Windows (close, minimize etc.), and avoid having to draw them myself using DrawThemeBackground
.
The first thing I don't understand is about having to paint the window black in order to see the extended non-client area. Does that mean that, even if the dialog itself is white or gray via WM_CTLCOLORDLG
, you need to handle WM_PAINT
in the dialog to paint certain areas black?
And then my second question is how to actually paint the non-client area white (while still preserving the standard non-client controls).
Thanks for any input or guidance on how to accomplish this. By the way, I tried the sample provided in this answer, but that doesn't include the non-client controls (close, minimize, etc.).