insertdlg.cpp

来自「数据结构课程设计 图形界面 数据结构课程设计 图形界面 文本编辑器用MFC做」· C++ 代码 · 共 60 行

CPP
60
字号
// InsertDlg.cpp : implementation file
//

#include "stdafx.h"
#include "kecheng.h"
#include "InsertDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CInsertDlg dialog


CInsertDlg::CInsertDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CInsertDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInsertDlg)
	m_insertl = 0;
	m_insertm = 0;
	//}}AFX_DATA_INIT
}


void CInsertDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInsertDlg)
	DDX_Text(pDX, IDC_EDIT1, m_insertl);
	DDX_Text(pDX, IDC_EDIT2, m_insertm);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CInsertDlg message handlers

BOOL CInsertDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
		m_tooltips3.Create(this);

	m_tooltips3.ADDTool(IDC_EDIT1,"起始行");
	m_tooltips3.ADDTool(IDC_EDIT2,"总行数");
	m_tooltips3.ADDTool(IDOK,"确定操作");
	m_tooltips3.ADDTool(IDCANCEL,"取消操作");
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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