title: change the background color of a dialog box mfc
body: <p>I'm trying to change the background color of a dialog box (win 7, vs2010,c++).
  I tried to catch WM_CTLCOLOR ,WM_ERASEBKGND and change the color.
  I manged to change in this way the backgroung color, but when the window is finish to upload itself, the color is back to default but I noticed that the frame is in the right color.
  I think that I'm changing the window and not the dialog box or something like that.
  I'm doing this with WTL (not AFX).</p>
  
  <p>What should I do?</p>