-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathColorCtrl.h
69 lines (53 loc) · 1.9 KB
/
ColorCtrl.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
/*
Pixcen - A windows platform low level pixel editor for C64
Copyright (C) 2013 John Hammarberg ([email protected])
This file is part of Pixcen.
Pixcen is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Pixcen is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Pixcen. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include "ToolDialog.h"
#include "afxwin.h"
#include "col.h"
// CColorCtrl dialog
class CColorCtrl : public CToolDialog
{
DECLARE_DYNAMIC(CColorCtrl)
public:
CColorCtrl(CWnd* pParent = NULL); // standard constructor
virtual ~CColorCtrl();
// Dialog Data
enum { IDD = IDD_CONTROL };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
CStatic m_c[6];
CCol m_col[6];
protected:
void PaintCol(CPaintDC &dc);
CRect area[6];
void OnClickedColStatic(int n);
public:
virtual BOOL OnInitDialog();
afx_msg void OnStnClickedStaticC0();
afx_msg void OnStnClickedStaticC1();
afx_msg void OnStnClickedStaticC2();
afx_msg void OnStnClickedStaticC3();
afx_msg void OnStnClickedStaticC4();
afx_msg void OnStnClickedStaticC5();
void Receive(unsigned short message, UINT_PTR data, unsigned short extra);
protected:
afx_msg LRESULT OnUmCellRclick(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnUmDropPalSel(WPARAM wParam, LPARAM lParam);
public:
};