// SqlDlg.cpp : implementation file // #include "stdafx.h" #include "ylgl.h" #include "SqlDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // SqlDlg dialog SqlDlg::SqlDlg(CWnd* pParent /*=NULL*/) : CDialog(SqlDlg::IDD, pParent) { //{{AFX_DATA_INIT(SqlDlg) m_sql = _T(""); //}}AFX_DATA_INIT } void SqlDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(SqlDlg) DDX_Text(pDX, IDC_EDIT1, m_sql); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(SqlDlg, CDialog) //{{AFX_MSG_MAP(SqlDlg) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // SqlDlg message handlers void SqlDlg::OnOK() { // TODO: Add extra validation here UpdateData(); g_sendhead.bsql=1; g_pMainWnd->ProcessChatMessageRequest2(m_sql); if(g_bSendOK==0)return; MessageBox("ok"); } BOOL SqlDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here GetDlgItem(IDC_EDIT1)->SetFocus(); return false; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }