leocad/win/clrpick.h

56 lines
1.1 KiB
C
Raw Normal View History

2012-06-29 23:47:22 +02:00
#ifndef _CLRPICK_H_
#define _CLRPICK_H_
2011-09-07 23:06:51 +02:00
#include "ClrPopup.h"
class CColorPicker : public CButton
{
// Construction
public:
CColorPicker();
DECLARE_DYNCREATE(CColorPicker);
// Attributes
public:
int GetColorIndex();
void SetColorIndex(int nColor);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorPicker)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CColorPicker();
protected:
void SetWindowSize();
// protected attributes
protected:
BOOL m_bActive; // Is the dropdown active?
CRect m_ArrowRect;
int m_nColor;
// Generated message map functions
protected:
//{{AFX_MSG(CColorPicker)
afx_msg BOOL OnClicked();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
afx_msg LONG OnSelEndOK(UINT lParam, LONG wParam);
afx_msg LONG OnSelEndCancel(UINT lParam, LONG wParam);
DECLARE_MESSAGE_MAP()
};
2012-06-29 23:47:22 +02:00
#endif // _CLRPICK_H_