VideoDialog.cpp
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // VideoDialog.cpp : implementation file
- //
- #include "stdafx.h"
- #include "conference.h"
- #include "VideoDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CVideoDialog dialog
- CVideoDialog::CVideoDialog(CWnd* pParent /*=NULL*/)
- : CDialog(CVideoDialog::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CVideoDialog)
- //}}AFX_DATA_INIT
- }
- void CVideoDialog::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CVideoDialog)
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CVideoDialog, CDialog)
- //{{AFX_MSG_MAP(CVideoDialog)
- ON_WM_NCHITTEST()
- ON_WM_SIZE()
- ON_WM_CTLCOLOR()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CVideoDialog message handlers
- UINT CVideoDialog::OnNcHitTest(CPoint point)
- {
- UINT hitTest = CDialog::OnNcHitTest(point);
- return ( hitTest == HTCLIENT || hitTest == HTCAPTION ) ? HTTRANSPARENT : hitTest;
- }
- void CVideoDialog::OnSize(UINT nType, int cx, int cy)
- {
- CDialog::OnSize(nType, cx, cy);
- if( this->GetWindow( GW_CHILD ) )
- this->GetWindow( GW_CHILD )->MoveWindow( 0 , 0 , cx , cy );
- }
- HBRUSH CVideoDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- static HBRUSH b = ::CreateSolidBrush( RGB( 214 , 239 , 255 ) );
- return b;
- }