www.pudn.com > final_6.rar > GammaDialog.cpp


// GammaDialog.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "CG.h" 
#include "GammaDialog.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CGammaDialog dialog 
 
 
CGammaDialog::CGammaDialog(CWnd* pParent /*=NULL*/) 
	: CDialog(CGammaDialog::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CGammaDialog) 
	m_Blue = gammaR; 
	m_Green = gammaG; 
	m_Red = gammaB; 
	//}}AFX_DATA_INIT 
} 
 
 
void CGammaDialog::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CGammaDialog) 
	DDX_Text(pDX, IDC_G_BLUE, m_Blue); 
	DDV_MinMaxDouble(pDX, m_Blue, 2., 3.); 
	DDX_Text(pDX, IDC_G_GREEN, m_Green); 
	DDV_MinMaxDouble(pDX, m_Green, 2., 3.); 
	DDX_Text(pDX, IDC_G_RED, m_Red); 
	DDV_MinMaxDouble(pDX, m_Red, 2., 3.); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CGammaDialog, CDialog) 
	//{{AFX_MSG_MAP(CGammaDialog) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CGammaDialog message handlers