-
大小: 2.15MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-10-25
- 语言: 其他
- 标签: ListControl
资源简介
将数据库中的数据表添加到ListControl控件、将数据库中的数据表添加到ListControl控件
代码片段和文件信息
// DataTableList.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “DataTableList.h“
#include “DataTableListDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDataTableListApp
BEGIN_MESSAGE_MAP(CDataTableListApp CWinApp)
//{{AFX_MSG_MAP(CDataTableListApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDataTableListApp construction
CDataTableListApp::CDataTableListApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDataTableListApp object
CDataTableListApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDataTableListApp initialization
BOOL CDataTableListApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
if(!AfxOleInit())
{
AfxMessageBox(_T(“Ole Initialization failed“));
return FALSE;
}
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CDataTableListDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1474560 2008-03-08 09:31 DataTableList\DATA.MDB
文件 22220 2008-04-03 22:57 DataTableList\DataTableList.aps
文件 1226 2008-04-03 22:57 DataTableList\DataTableList.clw
文件 2255 2007-05-08 08:47 DataTableList\DataTableList.cpp
文件 4347 2007-05-08 08:47 DataTableList\DataTableList.dsp
文件 551 2007-05-08 08:47 DataTableList\DataTableList.dsw
文件 1401 2007-05-08 08:47 DataTableList\DataTableList.h
文件 99328 2008-04-03 22:57 DataTableList\DataTableList.ncb
文件 48640 2008-04-03 22:57 DataTableList\DataTableList.opt
文件 1978 2008-03-08 09:29 DataTableList\DataTableList.plg
文件 5518 2007-05-08 08:47 DataTableList\DataTableList.rc
文件 4898 2007-05-08 08:47 DataTableList\DataTableListDlg.cpp
文件 1455 2007-05-08 08:47 DataTableList\DataTableListDlg.h
文件 110703 2008-03-08 09:29 DataTableList\Debug\DataTableList.exe
文件 207848 2008-03-08 09:29 DataTableList\Debug\DataTableList.ilk
文件 15085 2008-03-08 09:29 DataTableList\Debug\DataTableList.obj
文件 5886072 2008-03-08 09:29 DataTableList\Debug\DataTableList.pch
文件 287744 2008-03-08 09:29 DataTableList\Debug\DataTableList.pdb
文件 3056 2008-03-08 09:29 DataTableList\Debug\DataTableList.res
文件 35335 2008-03-08 09:29 DataTableList\Debug\DataTableListDlg.obj
文件 112780 2008-03-08 09:29 DataTableList\Debug\StdAfx.obj
文件 214016 2008-04-03 22:57 DataTableList\Debug\vc60.idb
文件 397312 2008-03-08 09:29 DataTableList\Debug\vc60.pdb
文件 1078 2007-05-08 08:47 DataTableList\res\DataTableList.ico
文件 405 2007-05-08 08:47 DataTableList\res\DataTableList.rc2
文件 828 2007-05-08 08:47 DataTableList\resource.h
文件 215 2007-05-08 08:47 DataTableList\StdAfx.cpp
文件 1095 2007-05-08 08:47 DataTableList\StdAfx.h
文件 318 2007-05-08 08:47 DataTableList\table.ICO
文件 352 2007-05-08 08:47 DataTableList\程序使用说明.txt
............此处省略6个文件信息
评论
共有 条评论