📄 dataopedlg.cpp
字号:
// DataOpeDlg.cpp : implementation file
//
#include "stdafx.h"
#include "OO4O_VC.h"
#include "DataOpeDlg.h"
#include "BrowDataStruDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDataOpeDlg dialog
CDataOpeDlg::CDataOpeDlg(CWnd* pParent /*=NULL*/)
: CDialog(CDataOpeDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDataOpeDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CDataOpeDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDataOpeDlg)
DDX_Control(pDX, IDC_TABLE_COMBO1, m_comboTableName);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDataOpeDlg, CDialog)
//{{AFX_MSG_MAP(CDataOpeDlg)
ON_BN_CLICKED(IDC_BROW_TABSTR, OnBrowTabstr)
ON_BN_CLICKED(IDC_BROW_TAB_DATA, OnBrowTabData)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDataOpeDlg message handlers
void CDataOpeDlg::OnBrowTabstr()
{
// TODO: Add your control notification handler code here
CString strTableName;
m_comboTableName.GetLBText(m_comboTableName.GetCurSel(),strTableName);
CBrowDataStruDlg dlg(strTableName,FALSE);
dlg.DoModal();
}
void CDataOpeDlg::OnBrowTabData()
{
// TODO: Add your control notification handler code here
CString strTableName;
m_comboTableName.GetLBText(m_comboTableName.GetCurSel(),strTableName);
CBrowDataStruDlg dlg(strTableName,TRUE);
dlg.DoModal();
}
BOOL CDataOpeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
COO4O_VCApp * pApp =(COO4O_VCApp *)AfxGetApp();
CStringArray strTableArray;
pApp->oo4o_vc.GetTables(&strTableArray);
for(int i=0; i<strTableArray.GetSize(); i++)
{
m_comboTableName.AddString(strTableArray.GetAt(i));
}
m_comboTableName.SetCurSel(0);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -