다이얼로그
-
다이얼로그에서의 더블 버퍼링MFC 2010. 10. 15. 15:34
void CTestDlg::OnPaint() { SolidBrush bgBrush(Color(255,255,255)); // 흰색으로 초기화 CPaintDC dc(this); CBrush brhBack; brhBack.CreateSolidBrush(RGB(255,255,255)); // 배경색 CRect rlClientRect; GetClientRect(rlClientRect); Rect rclClient(rlClientRect.left,rlClientRect.top,rlClientRect.Width(),rlClientRect.Height()); CBitmap bmp; CBitmap* pOldBmp; CDC memDC; bmp.CreateCompatibleBitmap(&dc, rlClientRect.ri..