00001 #if !defined(AFX_COLORPOPUPDIALOG_H__FF54B580_0EFC_468F_B8CA_04DD816DA134__INCLUDED_)
00002 #define AFX_COLORPOPUPDIALOG_H__FF54B580_0EFC_468F_B8CA_04DD816DA134__INCLUDED_
00003
00004 #if _MSC_VER >= 1000
00005 #pragma once
00006 #endif // _MSC_VER >= 1000
00007
00008
00009
00011
00012
00013 class CColorPopupDialog : public CDialog
00014 {
00015
00016 public:
00017 COLORREF GetSaturation(int x, int y);
00018 COLORREF GetHue(int y);
00019 void NewClick(CPoint point);
00020 COLORREF GetColor();
00021 CColorPopupDialog(CWnd* pParent = NULL);
00022
00023
00024
00025 enum { IDD = IDD_POPUP_COLOR };
00026 int m_blue;
00027 int m_green;
00028 int m_red;
00029
00030
00031
00032
00033
00034
00035 protected:
00036 virtual void DoDataExchange(CDataExchange* pDX);
00037
00038
00039
00040 protected:
00041 CPoint m_ptSaturation, m_ptHue;
00042 CRect m_rcSaturation, m_rcHue;
00043 bool m_bLowColorDisplay;
00044 bool m_bInitialized;
00045
00046
00047
00048 afx_msg void OnPaint();
00049 afx_msg void OnChange();
00050 virtual BOOL OnInitDialog();
00051 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00052 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00053
00054 DECLARE_MESSAGE_MAP()
00055 };
00056
00057
00058
00059
00060 #endif // !defined(AFX_COLORPOPUPDIALOG_H__FF54B580_0EFC_468F_B8CA_04DD816DA134__INCLUDED_)