www.pudn.com > colortable.zip > Swatch.h
/*****************************************************************************
* Change Log
* Date | Change
*-----------+-----------------------------------------------------------------
* 13-Jan-02 | Created
*****************************************************************************/
#if !defined(AFX_SWATCH_H__58EB0CF1_0726_11D6_A059_006067718D04__INCLUDED_)
#define AFX_SWATCH_H__58EB0CF1_0726_11D6_A059_006067718D04__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Swatch.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CSwatch window
class CSwatch : public CStatic
{
// Construction
public:
CSwatch();
// Attributes
public:
// Operations
public:
COLORREF GetColor() { return color; }
void SetColor(COLORREF c) { color = c; Invalidate(); }
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSwatch)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSwatch();
// Generated message map functions
protected:
COLORREF color;
//{{AFX_MSG(CSwatch)
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SWATCH_H__58EB0CF1_0726_11D6_A059_006067718D04__INCLUDED_)