Click here to Skip to main content
15,885,278 members
Articles / Desktop Programming / MFC

CxImage

Rate me:
Please Sign up or sign in to vote.
4.65/5 (949 votes)
15 Feb 2008Zlib13 min read 12.9M   300.6K   1.6K  
CxImage is a C++ class to load, save, display, transform BMP, JPEG, GIF, PNG, TIFF, MNG, ICO, PCX, TGA, WMF, WBMP, JBG, J2K images.
// DlgRepair.cpp : implementation file
//

#include "stdafx.h"
#include "demo.h"
#include "DlgRepair.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// DlgRepair dialog


DlgRepair::DlgRepair(CWnd* pParent /*=NULL*/)
	: CDialog(DlgRepair::IDD, pParent)
{
	//{{AFX_DATA_INIT(DlgRepair)
	m_radius = 0.0f;
	m_iterations = 0;
	//}}AFX_DATA_INIT
}


void DlgRepair::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DlgRepair)
	DDX_Control(pDX, IDC_COMBO9, m_cs);
	DDX_Control(pDX, IDOK, m_ok);
	DDX_Control(pDX, IDCANCEL, m_canc);
	DDX_Text(pDX, IDC_EDIT2, m_radius);
	DDX_Text(pDX, IDC_EDIT3, m_iterations);
	DDV_MinMaxInt(pDX, m_iterations, 1, 50);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DlgRepair, CDialog)
	//{{AFX_MSG_MAP(DlgRepair)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DlgRepair message handlers

BOOL DlgRepair::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_ok.SetIcon(IDI_G,BS_LEFT);
	m_canc.SetIcon(IDI_R,BS_LEFT);
	
	m_cs.SetCurSel(0);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void DlgRepair::OnOK() 
{
	m_ncs = m_cs.GetCurSel();
	CDialog::OnOK();
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The zlib/libpng License


Written By
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions