| 626 | } |
| 627 | |
| 628 | void CFamiTrackerApp::ReloadColorScheme() |
| 629 | { |
| 630 | // Notify all views |
| 631 | POSITION TemplatePos = GetFirstDocTemplatePosition(); |
| 632 | CDocTemplate *pDocTemplate = GetNextDocTemplate(TemplatePos); |
| 633 | POSITION DocPos = pDocTemplate->GetFirstDocPosition(); |
| 634 | |
| 635 | while (CDocument* pDoc = pDocTemplate->GetNextDoc(DocPos)) { |
| 636 | POSITION ViewPos = pDoc->GetFirstViewPosition(); |
| 637 | while (CView *pView = pDoc->GetNextView(ViewPos)) { |
| 638 | if (pView->IsKindOf(RUNTIME_CLASS(CFamiTrackerView))) |
| 639 | static_cast<CFamiTrackerView*>(pView)->SetupColors(); |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | // Main window |
| 644 | CMainFrame *pMainFrm = dynamic_cast<CMainFrame*>(GetMainWnd()); |
| 645 | |
| 646 | if (pMainFrm != NULL) { |
| 647 | pMainFrm->SetupColors(); |
| 648 | pMainFrm->RedrawWindow(); |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | BOOL CFamiTrackerApp::OnIdle(LONG lCount) // // // |
| 653 | { |