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

📄 erasesel.cpp

📁 单片机对FLASH芯片的烧写,源程序,原理图,PCB图
💻 CPP
字号:
// EraseSel.cpp : implementation file
//

#include "stdafx.h"
#include "prgx.h"
#include "EraseSel.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEraseSel dialog


CEraseSel::CEraseSel(CWnd* pParent /*=NULL*/)
	: CDialog(CEraseSel::IDD, pParent)
{
	//{{AFX_DATA_INIT(CEraseSel)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CEraseSel::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEraseSel)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CEraseSel message handlers

BOOL CEraseSel::OnInitDialog() 
{
	CDialog::OnInitDialog();
	x=(CComboBox*)GetDlgItem(IDC_COMBOBOX);
	char y[100];
	x->ResetContent( );
	x->InsertString(-1,"擦除全部扇区");
	for(int i=0;i<35;i++)
	{	sprintf(y,"擦除S%02d扇区",i);
		x->InsertString(-1,y);
	}
	x->SetCurSel(0);
	UpdateData(FALSE);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}


void CEraseSel::OnOK() 
{

	UpdateData(TRUE);
	sel=x->GetCurSel();
	if(sel==CB_ERR)
	{AfxMessageBox("您没有指定擦除扇区!");
	 return;
	}
	CDialog::OnOK();
}

⌨️ 快捷键说明

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