Change the background of control on dialog and view
1. in CColorDlg::OnCtlColor(), I add code:
if (nCtlColor==CTLCOLOR_EDIT)
pDC->SetTextColor(RGB(100,0,100));
But it can not show the background color of the Edit control until you
make some input in that Edit. Why? But i remember the thing was not like
this before!
2.If you want to subclass a control, in which function you add this code:
m_control.SubclassDlgItem()? Is in ::oncreate()?