www.pudn.com > RSImageManger.rar > batconvert1.cpp
// BATCONVERT1.cpp : implementation file
//
#include "stdafx.h"
#include "ImageManger.h"
#include "BATCONVERT1.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// BATCONVERT dialog
BATCONVERT::BATCONVERT(CWnd* pParent /*=NULL*/)
: CDialog(BATCONVERT::IDD, pParent)
{
//{{AFX_DATA_INIT(BATCONVERT)
m_BatWay = -1;
//}}AFX_DATA_INIT
}
void BATCONVERT::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(BATCONVERT)
DDX_Radio(pDX, IDC_BMPTOJPG, m_BatWay);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(BATCONVERT, CDialog)
//{{AFX_MSG_MAP(BATCONVERT)
ON_BN_CLICKED(IDC_BMP24To256, OnBMP24To256)
ON_BN_CLICKED(IDC_BMP8TO24, OnBmp8to24)
ON_BN_CLICKED(IDC_BMPTOIMG, OnBmptoimg)
ON_BN_CLICKED(IDC_BMPTOJPG, OnBmptojpg)
ON_BN_CLICKED(IDC_JPGTOBMP, OnJpgtobmp)
ON_BN_CLICKED(IDC_BMPTOTIFF, OnBmptotiff)
ON_BN_CLICKED(IDC_TIFFTOBMP, OnTifftobmp)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// BATCONVERT message handlers
void BATCONVERT::OnBMP24To256()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_BMP24To256))
{
m_BatWay=4;
}
}
void BATCONVERT::OnBmp8to24()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_BMP8TO24))
{
m_BatWay=3;
}
}
void BATCONVERT::OnBmptoimg()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_BMPTOIMG))
{
m_BatWay=1;
}
}
void BATCONVERT::OnBmptojpg()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_BMPTOJPG))
{
m_BatWay=0;
}
}
void BATCONVERT::OnJpgtobmp()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_JPGTOBMP))
{
m_BatWay=2;
}
}
void BATCONVERT::OnBmptotiff()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_BMPTOTIFF))
{
m_BatWay=5;
}
}
void BATCONVERT::OnTifftobmp()
{
// TODO: Add your control notification handler code here
if(IsDlgButtonChecked(IDC_TIFFTOBMP))
{
m_BatWay=6;
}
}