tablecombobox.cpp

来自「方便的数据库连接调试程序」· C++ 代码 · 共 46 行

CPP
46
字号
// TableComboBox.cpp : implementation file
//

#include "stdafx.h"
#include "frontTool.h"
#include "TableComboBox.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTableComboBox

CTableComboBox::CTableComboBox()
{
}

CTableComboBox::~CTableComboBox()
{
}

void CTableComboBox::ListTable(CFTDB *pDB)
{
	if(pDB->ListAllTable("'TABLE'"))
	{
		ResetContent();
		for(int i=0;i<pDB->m_arrTableName.GetUpperBound()+1;i++)
		{
			AddString(pDB->m_arrTableName.GetAt(i));
		}
	}
}


BEGIN_MESSAGE_MAP(CTableComboBox, CComboBox)
	//{{AFX_MSG_MAP(CTableComboBox)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTableComboBox message handlers

⌨️ 快捷键说明

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