-
Notifications
You must be signed in to change notification settings - Fork 11
/
PatternView.h
49 lines (40 loc) · 1.7 KB
/
PatternView.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
//
// パターンビュークラス
//
#ifndef __CPATTERNVIEW_INCLUDED__
#define __CPATTERNVIEW_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <string>
using namespace std;
#include "Wnd.h"
class CPatternView : public CWnd
{
public:
// Constructor/Destructor
CPatternView();
~CPatternView();
// Override from CWnd
BOOL Create( HWND hWndParent );
void Destroy();
protected:
// Message map
WND_MESSAGE_MAP()
WNDMSG OnCreate( WNDMSGPARAM );
WNDMSG OnClose( WNDMSGPARAM );
WNDMSG OnDestroy( WNDMSGPARAM );
WNDMSG OnLButtonDown( WNDMSGPARAM );
WNDMSG OnTimer( WNDMSGPARAM );
//
struct BITMAPHDR {
BITMAPINFOHEADER bih;
RGBQUAD rgb[16];
} m_BitmapHdr;
//
INT m_SelectPal;
RGBQUAD m_Palette[256];
LPBYTE m_lpBank[8];
LPBYTE m_lpPattern;
private:
};
#endif // !__CPATTERNVIEW_INCLUDED__