1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #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::SqlDlg(CWnd* pParent )
- : CDialog(SqlDlg::IDD, pParent)
- {
-
- m_sql = _T("");
-
- }
- void SqlDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
-
- DDX_Text(pDX, IDC_EDIT1, m_sql);
-
- }
- BEGIN_MESSAGE_MAP(SqlDlg, CDialog)
-
-
- END_MESSAGE_MAP()
- void SqlDlg::OnOK()
- {
-
- UpdateData();
- g_sendhead.bsql=1;
- g_pMainWnd->ProcessChatMessageRequest2(m_sql);
- if(g_bSendOK==0)return;
- MessageBox("ok");
- }
- BOOL SqlDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
-
-
- GetDlgItem(IDC_EDIT1)->SetFocus();
- return false;
-
- }
|