summaryrefslogtreecommitdiff
path: root/src/T2MainWindow.h
blob: 31f28a03784e995aed61ced0844280c764394b1b (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
49
50
51
52
53
54
55
56
57
58
59
#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()
};