I am not using a dialog, I\'m using my own custom class which I have registered and then used the CreateWindow call to create it, I have preset the background c
CreateWindow
You may try the following:
HBRUSH brush = CreateSolidBrush(RGB(0, 0, 255)); SetClassLongPtr(hwnd, GCLP_HBRBACKGROUND, (LONG_PTR)brush);