#pragma once #include "common.h" #define T2_MAIN_WINDOW ((T2MainWindow *) AfxGetMainWnd()) class T2MainWindow : public CFrameWnd { protected: T2MainWindow(); DECLARE_DYNCREATE(T2MainWindow) public: virtual ~T2MainWindow(); virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; void Setup(); void Teardown(); void x414445(); void x4144FA(); LPDIRECTSOUND mDirectSound; T2SoundPlayer *mSoundPlayer; T2MsgWindow *mMsgWindow; T2CtrlPalette *mCtrlPalette; CString mWndClassB; T2ToolWindow *mToolWindow; CString mWndClassA; int _DC; CString mWndClassC; DbgStepRun *mDbgStepRun; DbgIPS *mDbgIPS; BOOL _EC; int _F0; protected: void InitSound(); void DeinitSound(); //{{AFX_VIRTUAL(T2MainWindow) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL protected: //{{AFX_MSG(T2MainWindow) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); afx_msg void OnActivateApp(BOOL bActive, HTASK hTask); afx_msg void OnCmdDebugEvent(); afx_msg void OnUpdateCmdDebugEvent(CCmdUI *pCmdUI); afx_msg void OnClose(); afx_msg void OnCmdDebugMode(); //}}AFX_MSG DECLARE_MESSAGE_MAP() };