Cosmetics: Move some global variables into CMainFrame.