FileView.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- #if !defined(AFX_FILEVIEW_H__BF113D45_9152_415B_819E_D4D819D7A657__INCLUDED_)
- #define AFX_FILEVIEW_H__BF113D45_9152_415B_819E_D4D819D7A657__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // FileView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CFileView form view
- #ifndef __AFXEXT_H__
- #include <afxext.h>
- #endif
- class CMainFrame;
- #include "ListCtrlEx.h"
- #include "Afxmt.h"
- class CFileView : public CFormView
- {
- protected:
- CFileView();
- virtual ~CFileView();
- DECLARE_DYNCREATE( CFileView )
- class CInfo
- {
- public :
- CInfo( CFileView * pThis , int * id_list , int id_size )
- {
- this->pThis = pThis;
- this->id_size = id_size;
- this->id_list = this->id_size > 0 ? new int[ this->id_size ] : NULL;
- if( this->id_list )
- memcpy( this->id_list , id_list , this->id_size * sizeof( int ) );
- }
- virtual ~CInfo( )
- {
- if( this->id_list )
- {
- delete [ ]this->id_list; this->id_list = NULL;
- }
- }
- CFileView * pThis;
- CFile File;
- int * id_list;
- int id_size;
- };
- public:
- enum
- {
- SEND = 1 , RECEIVE
- };
- void SetMode( CFrameWnd * mainFrame , int mode );
- void Insert( const char * filename );
- void Delete( void );
- void Send( void );
- void Cancel( void );
- //{{AFX_DATA(CFileView)
- enum { IDD = IDD_VIEW_DIALOG };
- CListCtrlEx m_list;
- //}}AFX_DATA
- protected:
- void UpdateFileName( CString & filename );
- static UINT OnSend( void * pContext );
- //{{AFX_VIRTUAL(CFileView)
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- afx_msg void OnReceive( WPARAM wParam , LPARAM lParam );
- //{{AFX_MSG(CFileView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- int mode;
- CMainFrame * frame;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_FILEVIEW_H__BF113D45_9152_415B_819E_D4D819D7A657__INCLUDED_)