summaryrefslogtreecommitdiff
path: root/src/T2MainWindow.h
blob: b84d81fdb3aa83450c27c38c7db237f1d233de3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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();
};