void MfcViewAdapter::regenAll(bool changed) { if (changed) { _coreView->submitBackDoc(this, changed); } _coreView->submitDynamicShapes(this); _canvas.clearCachedBitmap(); if (_wnd->GetSafeHwnd()) { _wnd->InvalidateRect(NULL, FALSE); } }
void regen(HWND hwnd) { _canvas.clearCachedBitmap(); // 需要重新构建显示 InvalidateRect(hwnd, NULL, FALSE); // 触发重绘消息 }