For the background, the default background color is used, use GetSysColor (COLOR_WINDOW). But in the end, the window decides what the background is and what the foreground is. WNDCLASS.hbrBackground and the message handler windows WM_ERASEBKGND and WM_PAINT are affected. Everything is possible.
Hans passant
source share