D:/Zythum/DinoKod/MapEditor/ColorButton.h

00001 #pragma once
00002 
00003 
00004 // CColorButton
00005 
00006 class CColorButton : public CButton
00007 {
00008         DECLARE_DYNAMIC(CColorButton)
00009 
00010 public:
00011         CColorButton();
00012         virtual ~CColorButton();
00013 
00014         COLORREF        GetColor()                                      { return m_Color;                                       }
00015         void            SetColor( COLORREF Color )      { m_Color = Color; RedrawWindow();      }
00016 
00017 protected:
00018         COLORREF        m_Color;
00019 
00020         DECLARE_MESSAGE_MAP()
00021 public:
00022         afx_msg void OnPaint();
00023         afx_msg void OnBnClicked();
00024 protected:
00025         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00026 };
00027 
00028 

Generated on Sun Mar 25 20:02:13 2007 for Zythum Project by  doxygen 1.5.1-p1