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

📄 sql.cpp

📁 编译器
💻 CPP
字号:
// SQL.cpp : implementation file
//

#include "stdafx.h"
#include "shujuku.h"
#include "SQL.h"

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

/////////////////////////////////////////////////////////////////////////////
// SQL dialog


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


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


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

/////////////////////////////////////////////////////////////////////////////
// SQL message handlers

void SQL::OnOK() 
{
	// TODO: Add extra validation here
	CString e="wo";
	CWnd * p=this->GetDlgItem(IDC_EDIT1);
	p->GetWindowText(e);
    const char *t=(LPCTSTR)e;
	v=new char[strlen(t)+1];
	strcpy(v,t);
	CDialog::OnOK();
}

 

void SQL::OnCancel() 
{
	// TODO: Add extra cleanup here
	MessageBox("取消输入操作",NULL,MB_OK);
	v="";
	CDialog::OnCancel();
}

⌨️ 快捷键说明

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