实现过程很简单
使用本类的步骤如下:
1)从CColorFormView派生一个类,比如:
class CMyFormView : public CColorFormView
2)在视类的OnInitialUpdate()中改变背景颜色:
void CMyFormViewView::OnInitialUpdate()
{
SetWindowText(_T("This is my formview"));
CColorFormView::OnInitialUpdate();
// set color to your form view
SetBackgroundColor(RGB(0, 128, 0));
// make the parent frame fit the form template
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}