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

📄 order.cpp

📁 vc+access+ado编写的名片管理程序. 适合初学者学习.
💻 CPP
字号:
// order.cpp : implementation file
//

#include "stdafx.h"
#include "333.h"
#include "order.h"

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

/////////////////////////////////////////////////////////////////////////////
// order dialog


order::order(CWnd* pParent /*=NULL*/)
	: CDialog(order::IDD, pParent)
{
	//{{AFX_DATA_INIT(order)
	//}}AFX_DATA_INIT
}


void order::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(order)
	DDX_Control(pDX, IDC_COMBO4, m_combo4);
	DDX_Control(pDX, IDC_COMBO3, m_combo3);
	DDX_Control(pDX, IDC_COMBO2, m_combo2);
	DDX_Control(pDX, IDC_COMBO1, m_combo1);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// order message handlers

void order::OnOK() 
{
	UpdateData(TRUE);
	CString str1,str2,str3;
	m_combo1.GetWindowText(str1);
	if(str1=="")
		MessageBox("姓名不能为空!","警告!!!");
	else
	{
		::SendMessage(GetParent()->m_hWnd,WM_ORDER,0,(long)0);
		CDialog::OnOK();
	}
}

⌨️ 快捷键说明

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