summaryrefslogtreecommitdiff
path: root/src/T2MainWindow.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2MainWindow.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2MainWindow.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/T2MainWindow.h b/src/T2MainWindow.h
new file mode 100644
index 0000000..b84d81f
--- /dev/null
+++ b/src/T2MainWindow.h
@@ -0,0 +1,48 @@
+#pragma once
+#include "common.h"
+
+class T2MainWindow : public CFrameWnd {
+ DECLARE_DYNCREATE(T2MainWindow)
+ DECLARE_MESSAGE_MAP()
+
+public:
+ T2MainWindow();
+ virtual ~T2MainWindow();
+ virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
+ 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;
+ int _EC;
+ int _F0;
+
+protected:
+ void InitSound();
+ void DeinitSound();
+ 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();
+};