一、改变对话框背景颜色
1 void CTESTDlg::OnPaint() 2 { 3 CPaintDC dc(this); 4 CRect rect; 5 GetClientRect(rect); 6 dc.FillSolidRect(rect, RGB(255, 0, 0)); 7 }
时间: 2024-10-24 08:30:12
一、改变对话框背景颜色
1 void CTESTDlg::OnPaint() 2 { 3 CPaintDC dc(this); 4 CRect rect; 5 GetClientRect(rect); 6 dc.FillSolidRect(rect, RGB(255, 0, 0)); 7 }