2001-07-26 22:24:05 +02:00
|
|
|
#if !defined(AFX_GUILAYERRGB_H__2B103B4E_E1B3_4FD4_B791_A12204424DEE__INCLUDED_)
|
|
|
|
#define AFX_GUILAYERRGB_H__2B103B4E_E1B3_4FD4_B791_A12204424DEE__INCLUDED_
|
|
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
|
|
#pragma once
|
|
|
|
#endif // _MSC_VER > 1000
|
|
|
|
// GUILayerRGB.h : header file
|
|
|
|
//
|
2001-07-28 18:33:48 +02:00
|
|
|
#ifndef u8
|
|
|
|
typedef unsigned char u8;
|
|
|
|
#endif
|
2001-07-26 22:24:05 +02:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CGUILayerRGB dialog
|
|
|
|
|
|
|
|
class CGUILayerRGB : public CDialog
|
|
|
|
{
|
|
|
|
// Construction
|
|
|
|
public:
|
|
|
|
CGUILayerRGB(CWnd* pParent = NULL); // standard constructor
|
|
|
|
|
|
|
|
// Dialog Data
|
|
|
|
//{{AFX_DATA(CGUILayerRGB)
|
|
|
|
enum { IDD = IDD_LAYER_RGB };
|
2001-07-28 18:33:48 +02:00
|
|
|
CComboBox m_ModeList;
|
|
|
|
CButton m_Shade;
|
|
|
|
CSpinButtonCtrl m_BSpin;
|
|
|
|
CEdit m_B;
|
|
|
|
CSpinButtonCtrl m_GSpin;
|
|
|
|
CEdit m_G;
|
|
|
|
CSpinButtonCtrl m_RSpin;
|
|
|
|
CEdit m_R;
|
|
|
|
CSpinButtonCtrl m_BrushSpin;
|
|
|
|
CEdit m_Brush;
|
2001-07-26 22:24:05 +02:00
|
|
|
//}}AFX_DATA
|
|
|
|
|
|
|
|
|
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(CGUILayerRGB)
|
|
|
|
protected:
|
|
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
2001-07-28 18:33:48 +02:00
|
|
|
public:
|
|
|
|
void EnableCallback() {CallbackFlag=true;}
|
|
|
|
void DisableCallback() {CallbackFlag=false;}
|
|
|
|
|
|
|
|
void SetVal(CEdit &Dlg,int &Val,int Min=-1,int Max=-1);
|
|
|
|
void GetVal(CEdit &Dlg,int &Val,int Min=-1,int Max=-1);
|
|
|
|
void SetRGB(u8 &R,u8 &G,u8 &B);
|
|
|
|
void GetRGB(u8 &R,u8 &G,u8 &B);
|
|
|
|
|
2001-07-26 22:24:05 +02:00
|
|
|
protected:
|
2001-07-28 18:33:48 +02:00
|
|
|
bool CallbackFlag;
|
2001-07-26 22:24:05 +02:00
|
|
|
|
|
|
|
// Generated message map functions
|
|
|
|
//{{AFX_MSG(CGUILayerRGB)
|
2001-07-28 18:33:48 +02:00
|
|
|
afx_msg void OnParamChange();
|
2001-07-26 22:24:05 +02:00
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
|
|
|
|
#endif // !defined(AFX_GUILAYERRGB_H__2B103B4E_E1B3_4FD4_B791_A12204424DEE__INCLUDED_)
|