errdialog.cpp
来自「其中包含了ADO的多个实例」· C++ 代码 · 共 55 行
CPP
55 行
/*
File: ErrDialog.cpp : implementation file
*/
#include "stdafx.h"
#include "dbporter.h"
#include "ErrDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CErrDialog dialog
CErrDialog::CErrDialog(CWnd* pParent /*=NULL*/)
: CDialog(CErrDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CErrDialog)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CErrDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CErrDialog)
DDX_Control(pDX, IDC_ERRLIST, m_ErrList);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CErrDialog, CDialog)
//{{AFX_MSG_MAP(CErrDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CErrDialog message handlers
BOOL CErrDialog::OnInitDialog()
{
CDialog::OnInitDialog();
int c=m_pErrors->GetSize();
for(int i=0;i<c;i++)
{
m_ErrList.AddString(m_pErrors->GetAt(i));
}
return TRUE;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?