Conference.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:3k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // Conference.h : main header file for the CONFERENCE application
- //
- #if !defined(AFX_CONFERENCE_H__E1AECABA_F469_4009_ABD0_47678F06DA2F__INCLUDED_)
- #define AFX_CONFERENCE_H__E1AECABA_F469_4009_ABD0_47678F06DA2F__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- #include <afxmt.h>
- #include "ClientClient.h"
- #include "InitDialog.h"
- #include "TipDialog.h"
- //界面窗口
- extern "C" __declspec( dllimport ) bool ScrollBar( HWND hWnd );
- extern "C" __declspec( dllimport ) bool ToolTip( HWND hWnd , const char * szTip );
- //日志窗口
- extern "C" __declspec( dllimport ) HWND CreateLogWnd( bool ( * OnClose )( void * wParam ) , void * wParam );
- extern "C" __declspec( dllimport ) bool WriteLog( HWND hlogWnd ,const char * szFormat , ... );
- extern "C" __declspec( dllimport ) bool SaveLog( HWND hlogWnd , const char * filename );
- extern "C" __declspec( dllimport ) void DestroyLogWnd( HWND hlogWnd );
- //聊天信息
- extern "C" __declspec( dllimport ) CWnd * CreateChatWnd( void ( * OnChat )( void * pContext , CWnd * pChatWnd , char * buffer , int size ) , void * pContext , const char * username , int size = 0 );
- extern "C" __declspec( dllimport ) void SetChatMessage( CWnd * pChatWnd , char * buffer , int size );
- //协同浏览
- extern "C" __declspec( dllimport ) CWnd * CreateIEWnd( void ( * OnIEURL )( void * pContext , CWnd * pWnd , char * buffer , int size ) , void * pContext , const char * user_name );
- extern "C" __declspec( dllimport ) void SetIEMessage( CWnd * pIEWnd , char * buffer , int size );
- //文件传输
- extern "C" __declspec( dllimport ) CWnd * CreateFileWnd( void ( * OnFile )( void * pContext , CWnd * pWnd , char * buffer , int size ) , void * pContext , const char * user_name );
- extern "C" __declspec( dllimport ) void SetFileMessage( CWnd * pWnd , char * buffer , int size );
- extern "C" __declspec( dllimport ) void AddUser( CWnd * pWnd , char * user_name , int user_id );
- //应用程序共享
- extern "C" __declspec( dllimport ) CWnd * CreateShareWnd( bool ( * OnShare )( void * pContext , CWnd * pShareWnd , char * buffer , int size ) , void * pContext , const char * username );
- extern "C" __declspec( dllimport ) void SetShareMessage( CWnd * pShareWnd , char * buffer , int size );
- //电子白板
- extern "C" __declspec( dllimport ) CWnd * CreateWBWnd( void ( * OnWB )( void * pContext , CWnd * pWnd , char * buffer , int size ) , void * pContext , const char * username );
- extern "C" __declspec( dllimport ) void SetWBMessage( CWnd * pWnd , char * buffer , int size );
- class CConferenceApp : public CWinApp
- {
- public:
- CConferenceApp();
- CClient & GetClient( void ){ return client; }
- HWND GetLogHwnd( ){ return hlogWnd; }
- CInitDialog initdlg;
- CString appIni;
- protected:
- static UINT OnInitDialog( void * wParam );
- void SetAutoRun( void );
- //{{AFX_VIRTUAL(CConferenceApp)
- virtual BOOL InitInstance();
- virtual int ExitInstance();
- //}}AFX_VIRTUAL
- //{{AFX_MSG(CConferenceApp)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CClient client;
- CMutex mutex;
- CSingleLock * slock;
- HWND hlogWnd;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CONFERENCE_H__E1AECABA_F469_4009_ABD0_47678F06DA2F__INCLUDED_)