forked from tianzhansheng/virtuanessrc097
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPaletteEdit.h
71 lines (57 loc) · 2.68 KB
/
PaletteEdit.h
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
60
61
62
63
64
65
66
67
68
69
70
71
//
// パレットエディタクラス
//
#ifndef __CPALETTEEDIT_INCLUDED__
#define __CPALETTEEDIT_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <string>
using namespace std;
#include "Wnd.h"
class CPaletteEdit : public CWnd
{
public:
// Constructor/Destructor
CPaletteEdit();
~CPaletteEdit();
// Override from CWnd
BOOL Create( HWND hWndParent );
void Destroy();
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnDestroy( DLGMSGPARAM );
DLGMSG OnActivate( DLGMSGPARAM );
DLGMSG OnLButtonDown( DLGMSGPARAM );
DLGMSG OnRButtonDown( DLGMSGPARAM );
DLGMSG OnHScroll( DLGMSGPARAM );
DLGMSG OnPaint( DLGMSGPARAM );
DLGMSG OnTimer( DLGMSGPARAM );
DLGCMD OnOK( DLGCMDPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnDefault( DLGCMDPARAM );
DLGCMD OnRGBChange( DLGCMDPARAM );
DLGCMD OnUndo( DLGCMDPARAM );
DLGCMD OnLoad( DLGCMDPARAM );
DLGCMD OnSave( DLGCMDPARAM );
//
void OnChaneSelect();
void OnUpdateColor();
INT m_PaletteSelect;
RGBQUAD m_RGB;
BYTE m_BGPAL[16];
BYTE m_SPPAL[16];
enum {
CELL_SIZE = 22,
CELL_H = 16,
CELL_V = 4,
};
RGBQUAD m_Palette[256];
RGBQUAD m_PaletteUndo[256];
RGBQUAD m_PaletteDefault[256];
//
BOOL m_bShortCutDisable;
private:
};
#endif // !__CPALETTEEDIT_INCLUDED__