del.cpp

来自「用链表实现图片的显示」· C++ 代码 · 共 55 行

CPP
55
字号
// DEL.cpp : implementation file
//

#include "stdafx.h"
#include "Link_lists.h"
#include "DEL.h"


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

/////////////////////////////////////////////////////////////////////////////
// DEL dialog


DEL::DEL(CWnd* pParent /*=NULL*/)
	: CDialog(DEL::IDD, pParent)
{
	//{{AFX_DATA_INIT(DEL)
	m_Pic_Number = 1;
	//}}AFX_DATA_INIT
}


void DEL::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DEL)
	DDX_Text(pDX, IDC_PIC_D, m_Pic_Number);
	DDV_MinMaxInt(pDX, m_Pic_Number, 1, 100);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// DEL message handlers

void DEL::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData() ;
	number=m_Pic_Number;
	UpdateData(FALSE) ;
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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