InitDialog.cpp
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // InitDialog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "conference.h"
- #include "InitDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CInitDialog dialog
- CInitDialog::CInitDialog( const char * text , CWnd* pParent /*=NULL*/)
- : CDialog(CInitDialog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CInitDialog)
- //}}AFX_DATA_INIT
- this->text = text;
- }
- void CInitDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CInitDialog)
- DDX_Control(pDX, IDC_ANIMATE, m_avi);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CInitDialog, CDialog)
- //{{AFX_MSG_MAP(CInitDialog)
- ON_WM_CLOSE()
- ON_BN_CLICKED(IDCANCEL , OnClose )
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CInitDialog message handlers
- BOOL CInitDialog::OnInitDialog()
- {
- CDialog::OnInitDialog();
- this->m_avi.Open( IDR_INIT_AVI );
- if( ! this->text.IsEmpty( ) )
- {
- this->SetWindowText( this->text );
- this->SetDlgItemText( IDC_TEXT , this->text );
- this->GetDlgItem( IDCANCEL )->ShowWindow( SW_SHOW );
- CRect rc;
- this->GetDlgItem( IDC_TEXT )->GetWindowRect( &rc );
- this->ScreenToClient( &rc );
- rc.bottom -= 25;
- this->GetDlgItem( IDC_TEXT )->MoveWindow( rc );
- }
- return TRUE;
- }
- void CInitDialog::OnClose()
- {
- CDialog::OnCancel( );
- }