一、改变对话框背景颜色
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-12-29 11:52:56
一、改变对话框背景颜色
1 void CTESTDlg::OnPaint() 2 { 3 CPaintDC dc(this); 4 CRect rect; 5 GetClientRect(rect); 6 dc.FillSolidRect(rect, RGB(255, 0, 0)); 7 }