29 #ifndef __DIALOGCOLORPICKER__
30 #define __DIALOGCOLORPICKER__
38 #define PI 3.14159265358
42 #define TOSCALE(x) (((x)*RADIUS)/255.0)
43 #define SCALETOMAX(x) (((x)*255.0)/RADIUS)
50 #define BAD_SLOPE 1000000.0
118 DECLARE_MESSAGE_MAP()
191 bool DoNewColor(
int*
i1,
int*
i2,
int* i3,
float *overBright,
void (*Update)(
float,
float,
float,
float ) =
NULL );
afx_msg void OnChangeEditSat()
CDialogColorPicker(COLORREF c, CWnd *pParent=NULL)
bool DoNewColor(int *i1, int *i2, int *i3, float *overBright, void(*Update)(float, float, float, float)=NULL)
void TrackPoint(CPoint pt)
afx_msg void OnChangeEditOverbright()
CONST PIXELFORMATDESCRIPTOR UINT
BOOL InOverBright(CPoint pt)
void DrawXorRect(CDC *pDC, CRect &cr)
afx_msg void OnChangeEditVal()
virtual BOOL OnInitDialog()
#define IDD_DIALOG_COLORS
void DrawFilledColor(CDC *pDC, CRect cr, COLORREF c)
afx_msg void OnBtnColor()
void LoadMappedBitmap(CBitmap &bitmap, UINT nIdResource, CSize &size)
GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte * bitmap
afx_msg void OnSysColorChange()
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
afx_msg void OnChangeEditBlue()
void(* UpdateParent)(float r, float g, float b, float a)
afx_msg void OnChangeEditGreen()
GLubyte GLubyte GLubyte a
GLdouble GLdouble GLdouble r
afx_msg void OnTimer(UINT nIDEvent)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
afx_msg void OnChangeEditHue()
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
void DrawMarkers(CDC *pDC)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
afx_msg void OnChangeEditRed()