#pragma once #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols #include "common.h" class CT2App : public CWinApp { public: CT2App(); //{{AFX_VIRTUAL(CT2App) virtual BOOL InitInstance(); virtual int Run(); virtual BOOL PreTranslateMessage(MSG *pMsg); virtual BOOL OnIdle(LONG lCount); virtual int ExitInstance(); //}}AFX_VIRTUAL // modifies counter _DC - called from T2MoverModuleTable ctor // also called on Debug Step Run virtual void app_vfA4(BOOL inEnable); // sets mMessage virtual void app_vfA8(T2Message * inMessage); // clears mMessage virtual void app_vfAC(); // gets global data virtual T2GlobalData *app_vfB0() { return mGlobalData; } // runs a message loop - called from T2PluginLoader virtual void app_vfB4(); T2GlobalData *mGlobalData; T2PluginLoader *mPluginLoader; T2ToolWindow *mToolWindow; T2TowerDoc *mDocument; T2MainWindow *mMainWindow; int _DC; CString mStrE0; int _E4; T2Message *mMessage; //{{AFX_MSG(CT2App) afx_msg void OnCmdAbout(); afx_msg void OnCmdOpen(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; void ffDestroy(); #define T2_APP ((CT2App *) AfxGetApp())