【文件属性】:
文件名称:班级查询系统,可以完成录入查询你删除
文件大小:2.67MB
文件格式:RAR
更新时间:2013-01-18 08:20:09
查询录入删除
具有查询删除BOOL CTMSDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
m_db.Open(_T("tmsDSN"));
m_rs.m_pDatabase=&m_db;
m_rs.Open();
m_esno=m_rs.m_sno;
m_ename=m_rs.m_sname;
m_esex=m_rs.m_ssex;
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
}
void CTMSDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
if ((nID & 0xFFF0) == IDM_ABOUTBOX)
{
CAboutDlg dlgAbout;
dlgAbout.DoModal();
}
else
{
CDialog::OnSysCommand(nID, lParam);
}
}
// If you add a minimize button to your dialog, you will need the code below
// to draw the icon. For MFC applications using the document/view model,
// this is automatically done for you by the framework.
void CTMSDlg::OnPaint()
{录入等功能
【文件预览】:
TMS
----StdAfx.cpp(205B)
----TMS.dsp(4KB)
----TMS.opt(53KB)
----tmsSet.h(1KB)
----TMS.dsw(512B)
----TMS.plg(240B)
----TMS.APS(35KB)
----TMSDlg.cpp(7KB)
----TMS.ncb(57KB)
----Debug()
--------TMS.pch(5.25MB)
--------tmsSet.obj(15KB)
--------TMS.exe(112KB)
--------vc60.pdb(356KB)
--------TMS.bsc(3.11MB)
--------vc60.idb(217KB)
--------TMS.ilk(235KB)
--------TMS.res(3KB)
--------TMS.pdb(377KB)
--------StdAfx.obj(103KB)
--------TMSDlg.obj(41KB)
--------TMS.obj(16KB)
----ReadMe.txt(3KB)
----StdAfx.h(1KB)
----TMS.cpp(2KB)
----Resource.h(1KB)
----TMS.clw(2KB)
----res()
--------TMS.ico(1KB)
--------TMS.rc2(395B)
----tmsSet.cpp(1KB)
----TMS.h(1KB)
----TMSDlg.h(2KB)
----TMS.rc(6KB)