vBOOL
CMoebius4App::OnIdle(LONG lCount)
v{
v int dcnt =0;
v POSITION pos = GetFirstDocTemplatePosition();
v while (pos != NULL)
{
v CDocTemplate* pt = GetNextDocTemplate(pos);
v POSITION dpos = pt->GetFirstDocPosition();
v while (dpos != NULL) {
v dcnt++;
v CMBDoc *pd=(CMBDoc *)pt->GetNextDoc(dpos);
v POSITION vpos = pd->GetFirstViewPosition();
v while (vpos != NULL) {
v CView *base=pd->GetNextView(vpos);
v if(dynamic_cast<CMBGLView
*>(base) ){
v CMBGLView* pView = (CMBGLView*)base;
v pView->Invalidate();
v }
v }
v }
v }
v return dcnt;
v}
v