⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 step22.cpp

📁 mcgs的数据导出源代码
💻 CPP
字号:
// Step22.cpp : implementation file
//

#include "stdafx.h"
#include "Data_Trans.h"
#include "Data_TransDlg.h"
#include "Step22.h"


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

/////////////////////////////////////////////////////////////////////////////
// CStep22 dialog


CStep22::CStep22(CWnd* pParent /*=NULL*/)
	: CDialog(CStep22::IDD, pParent)
{
	//{{AFX_DATA_INIT(CStep22)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	m_Dlg = (CData_TransDlg*)pParent;
	m_bFirst = false;
}


void CStep22::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CStep22)
	DDX_Control(pDX, IDC_COMBO2, m_DataType);
	//}}AFX_DATA_MAP

}


BEGIN_MESSAGE_MAP(CStep22, CDialog)
	//{{AFX_MSG_MAP(CStep22)
	ON_CBN_CLOSEUP(IDC_COMBO2, OnCloseupCombo2)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CStep22 message handlers

void CStep22::OnCloseupCombo2() 
{
	// TODO: Add your control notification handler code here
	int i = m_DataType.GetCurSel();
	if(i != CB_ERR)	//没有选择
	{
		if (i==0)	//表示要转换成文本文件
		{	
			m_Dlg->m_Type = 1;
		}
		else	//表示要转换成数据库
		{
			m_Dlg->m_Type = 2;
		}
		m_Dlg->SetWizButton(3);	
	}
	else
	{
		m_Dlg->m_Type = 0;
	}
}

BOOL CStep22::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	int i = m_DataType.GetCurSel();
	if(i != CB_ERR)	//没有选择
	{
		m_Dlg->SetWizButton(3);	
	}
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CStep22::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
//	if (!m_bFirst)
	{
		int i = m_DataType.GetCurSel();
		if(i != CB_ERR)	//没有选择
		{
			if (i==0)	//表示要转换成文本文件
			{	
				m_Dlg->m_Type = 1;
			}
			else	//表示要转换成数据库
			{
				m_Dlg->m_Type = 2;
			}
			
			m_Dlg->SetWizButton(3);	
		}
		else
		{
			m_Dlg->m_Type = 0;
			m_Dlg->SetWizButton(2);	
		}
		m_bFirst = true;
	}
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -