Typical MFC applications will have a Document-View-Frame architecture. Data is stored in a Document object and is accessible worldwide. You can access it through AfxGetMainWnd ().
AfxGetApp() , , Document View. , , - CWinApp .
, , , - - CWinApp, . , "ok", , . , - .