|
背景を描画しない / 背景色を変更する |
|
BOOL CMyDlg::OnEraseBkgnd(CDC* pDC) { return TRUE; // return CDialog::OnEraseBkgnd(pDC); } |
|
BOOL CMyDlg::OnEraseBkgnd(CDC* pDC) { CRect rc; GetClientRect(&rc); pDC->FillSolidRect(&rc, RGB(0,0,0)); // 黒 return TRUE; // return CDialog::OnEraseBkgnd(pDC); } |