how to change the background of vc++ MFC form?

how to change the background of vc++ MFC form/dialog?
You can capture the DC from the WPARAM of a WM_ERASEBKGND message, or WM_CTLCOLORDLG message for a dialog. You can then use the DC to paint/display whatever.
Topic archived. No new replies allowed.