summaryrefslogtreecommitdiff
path: root/src/T2OpenSelectDlg.h
blob: 5c676ea963c4e60cef54fbaeb72831209ed9e337 (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
#pragma once
#include "common.h"
#include "resource.h"
#include "T2DLL/T2Dialog.h"

class Bitmap;

class T2OpenSelectDlg : public T2Dialog {
public:
    T2OpenSelectDlg(T2TowerDoc *inDoc);
    virtual ~T2OpenSelectDlg();

    void Setup();
    int ShowOpenSelectDialog();
    virtual void ListenToMessage(unsigned int msg, void *data);

    enum { kDlgResID = 1000 };

    enum {
        kCmdExit = 100,
        kCmdNew = 101,
        kCmdOpen = 102,
        kCmdLoadFromPath = 103,
    };

protected:
    virtual BOOL OnT2DialogCommand(WPARAM inWParam, LPARAM inLParam);
    virtual BOOL OnT2EraseBkgnd(CDC *pDC);
    virtual void vfF4();
    virtual void vfF8(int unk1, int unk2);

    CPalette mPalette1;
    T2TowerDoc *mTowerDoc;
    CPalette mPalette2;
    T2BitImage *mImage;
    T2ImageObj *mImageObj;
    int _114;
    short *mPal1;
    short *mPal2;
    Bitmap *mBitmap;
};