// DlgDither.cpp : implementation file
//
#include "stdafx.h"
#include "demo.h"
#include "DlgDither.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// DlgDither dialog
DlgDither::DlgDither(CWnd* pParent /*=NULL*/)
: CDialog(DlgDither::IDD, pParent)
{
//{{AFX_DATA_INIT(DlgDither)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void DlgDither::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(DlgDither)
DDX_Control(pDX, IDOK, m_ok);
DDX_Control(pDX, IDCANCEL, m_canc);
DDX_Control(pDX, IDC_RADIO2, m_r2);
DDX_Control(pDX, IDC_RADIO1, m_r1);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(DlgDither, CDialog)
//{{AFX_MSG_MAP(DlgDither)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// DlgDither message handlers
BOOL DlgDither::OnInitDialog()
{
CDialog::OnInitDialog();
m_ok.SetIcon(IDI_G,BS_LEFT);
m_canc.SetIcon(IDI_R,BS_LEFT);
m_r1.SetCheck(1);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void DlgDither::OnOK()
{
m_method = m_r2.GetCheck();
CDialog::OnOK();
}