ConectDialog.cpp
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // ConectDialog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Monitor.h"
- #include "ConectDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- extern CMonitorApp theApp;
- /////////////////////////////////////////////////////////////////////////////
- // CConectDialog dialog
- CConectDialog::CConectDialog(CWnd* pParent /*=NULL*/)
- : CDialog(CConectDialog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CConectDialog)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- this->m_return = 3;
- }
- void CConectDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CConectDialog)
- DDX_Control(pDX, IDC_ANIMATE1, m_AVI);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CConectDialog, CDialog)
- //{{AFX_MSG_MAP(CConectDialog)
- ON_WM_CLOSE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CConectDialog message handlers
- BOOL CConectDialog::OnInitDialog()
- {
- CDialog::OnInitDialog();
- this->m_AVI.Open( IDR_WAIT_AVI );
- return true;
- }
- void CConectDialog::OnClose()
- {
- switch( this->m_return )
- {
- case 1 :
- MessageBox( "该用户名不存在,请另选用户名" , "视频监控" , MB_ICONSTOP | MB_OK );
- break;
- case 2 :
- MessageBox( "该用户名已经在别处登陆,请另选用户名" , "视频监控" , MB_ICONSTOP | MB_OK );
- break;
- case 3 :
- if ( MessageBox( "本操作会退出系统,是否要退出系统" , "视频监控" , MB_ICONINFORMATION | MB_YESNO ) == IDNO )
- return;
- }
- CDialog::OnCancel( );
- }