Skip to main content
gamedev.net
🔒 Locked

MFC - Document Updates problem

Started by khalligan 0 replies 250+ views
Original Post
khalligan
khalligan
I frequently refresh my document from the view with code like: pDoc->UpdateAllViews(NULL); I have a splitter window with a Cview and a CFormView, when I move the mouse the CFormView (form) is flashing due to the UpdateAllViews. I was wondering if anyone knew a way to stop the CFormView from refreshing constantly. Keith
khalligan
khalligan
Actually I found out the problem, I just needed to override the OnUpdate(...) function in the CFormView class and just have:


void CToolBox::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
return;
}

and thats all

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.