ReceiveDialog.cpp
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // ReceiveDialog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "file.h"
- #include "ReceiveDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CReceiveDialog dialog
- CReceiveDialog::CReceiveDialog(PSendFileREQ * req , CWnd* pParent /*=NULL*/)
- : CDialog(CReceiveDialog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CReceiveDialog)
- //}}AFX_DATA_INIT
- this->sendREQ = req;
- }
- void CReceiveDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CReceiveDialog)
- DDX_Control(pDX, IDC_LIST, m_list);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CReceiveDialog, CDialog)
- //{{AFX_MSG_MAP(CReceiveDialog)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CReceiveDialog message handlers
- BOOL CReceiveDialog::OnInitDialog()
- {
- CDialog::OnInitDialog( );
- this->SetWindowText( this->sendREQ->user_name + " 发送文件" );
- int i = 0 , j = 0;
- while( ( j = this->sendREQ->filename.Find( '|' , i ) ) != -1 )
- {
- this->m_list.AddString( this->sendREQ->filename.Mid( i , j - i ) );
- i = j + 1;
- }
- return true;
- }