// TableNameDlg.cpp : implementation file // #include "stdafx.h" #include "kbeditors.h" #include "TableNameDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CTableNameDlg dialog CTableNameDlg::CTableNameDlg(CWnd* pParent /*=NULL*/) : CDialog(CTableNameDlg::IDD, pParent) { //{{AFX_DATA_INIT(CTableNameDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CTableNameDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CTableNameDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CTableNameDlg, CDialog) //{{AFX_MSG_MAP(CTableNameDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CTableNameDlg message handlers BOOL CTableNameDlg::OnInitDialog() { CDialog::OnInitDialog(); CStatic *st = (CStatic *) GetDlgItem(ID_OP); st->SetWindowText(OpStr); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CTableNameDlg::OnOK() { CEdit *ed = (CEdit *) GetDlgItem(ID_TEDIT); ed->GetWindowText(strTableName); CDialog::OnOK(); }