forked from ambilight-4-mediaportal/AtmoWin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAtmoCustomColorPicker.h
More file actions
50 lines (39 loc) · 1.22 KB
/
Copy pathAtmoCustomColorPicker.h
File metadata and controls
50 lines (39 loc) · 1.22 KB
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
/*
* AtmoCustomColorPicker.h: basic dialog for color selection - used only for inheritance to CAtmoColorPicker and CAtmoWhiteSetup
*
* See the README.txt file for copyright information and how to reach the author(s).
*
* $Id$
*/
#ifndef _AtmoCustomColorPicker_h_
#define _AtmoCustomColorPicker_h_
#include "basicdialog.h"
#include "AtmoDynData.h"
class CAtmoCustomColorPicker :
public CBasicDialog {
protected:
CAtmoDynData *m_pAtmoDynData;
int m_iRed;
int m_iGreen;
int m_iBlue;
int m_gRed[11];
int m_gGreen[11];
int m_gBlue[11];
int m_cRed[3];
int m_cGreen[3];
int m_cBlue[3];
int m_cYellow[3];
int m_cMagenta[3];
int m_cCyan[3];
protected:
virtual void outputColor(int red,int green,int blue);
void UpdateColorControls(ATMO_BOOL sliders,ATMO_BOOL edits);
virtual ATMO_BOOL InitDialog(WPARAM wParam);
virtual ATMO_BOOL ExecuteCommand(HWND hControl,int wmId, int wmEvent);
virtual void HandleHorzScroll(int code,int position,HWND scrollBarHandle);
void out_wb_color();
public:
CAtmoCustomColorPicker(HINSTANCE hInst, HWND parent, WORD dlgRessourceID, CAtmoDynData *pAtmoDynData, int red, int green, int blue);
virtual ~CAtmoCustomColorPicker(void);
};
#endif