s_prgdlg.cpp

来自「m16c flash startor 源码」· C++ 代码 · 共 75 行

CPP
75
字号
// S_PrgDlg.cpp : Implementation file
//
// This software can be offered for free and used as necessary to aid 
// in your program developments.
//
// RENESAS TECHNOLOGY CORPORATION, RENESAS SOLUTIONS CORPORATION,
// and related original software developers assume no responsibility 
// for any damage or infringement of any third-party's rights, originating 
// in the use of the following software.
// Please use this software under the agreement and acceptance of these conditions. 
//
// Copyright(C)1998(2003) RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION
// ALL RIGHTS RESERVED
//

#include "stdafx.h"
#include "m16cflsh.h"
#include "S_PrgDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CS_PrgDlg dialog
int CS_PrgDlg::s_FlashType = 1;


CS_PrgDlg::CS_PrgDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CS_PrgDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CS_PrgDlg)
	m_strCOM = _T(" ");
	m_FlashType = -1;
	//}}AFX_DATA_INIT
	m_strCOM = _T("COM1");
	m_FlashType = s_FlashType;

}


void CS_PrgDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CS_PrgDlg)
	DDX_CBString(pDX, IDC_COM, m_strCOM);
	DDX_Radio(pDX, IDC_RADIO1, m_FlashType);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CS_PrgDlg  Message handle

BOOL CS_PrgDlg::InitDisp()
{
	m_strCOM = _T("COM1");
	m_FlashType = int(0);

	return TRUE;
}

void CS_PrgDlg::OnOK() 
{

	CDialog::OnOK();
}

⌨️ 快捷键说明

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