摘要: 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 阅读全文
posted @ 2012-06-30 17:28 dyhui1992 阅读(362) 评论(0) 推荐(0) 编辑