摘要:
VC杂项一、改变视图背景色: 在CView的OnDraw函数中添写如下一段程序代码: void CFileNameView::OnDraw(CDC* pDC) {CFileNameDoc* pDoc = GetDocument();ASSERT_VALID(pDoc);CRect rectClient;CBrush brushBkColor;GetClientRect(rectClient);brushBkColor.CreateSolidBrush(RGB(255,0,0)); //颜色设置pDC->DPtoLP(rectClient);pDC->FillRect(rectCli 阅读全文