For an MFC Dialog, you have 2 .cpp files (Thing.cpp and ThingDlg.cpp). The following line goes in ThingApp::InitInstance() in Thing.cpp:
SetDialogBkColor(RGB(0,0,0), RGB(255,255,255));
The first arg is the background, the second is the foreground. Hope this helps!
--Rob