videocomm.cpp
上传用户:zheng6500
上传日期:2007-05-15
资源大小:335k
文件大小:2k
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
- #include "stdafx.h"
- #include "videocomm.h"
- /////////////////////////////////////////////////////////////////////////////
- // CVideoComm
- IMPLEMENT_DYNCREATE(CVideoComm, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CVideoComm properties
- short CVideoComm::GetVideoWidth()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- void CVideoComm::SetVideoWidth(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
- short CVideoComm::GetVideoHeight()
- {
- short result;
- GetProperty(0x2, VT_I2, (void*)&result);
- return result;
- }
- void CVideoComm::SetVideoHeight(short propVal)
- {
- SetProperty(0x2, VT_I2, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CVideoComm operations
- void CVideoComm::Init()
- {
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::AddDestIp(LPCTSTR ipaddr)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ipaddr);
- }
- void CVideoComm::DelDestIp(LPCTSTR ipaddr)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ipaddr);
- }
- void CVideoComm::Start()
- {
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::Stop()
- {
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::ZoomIn()
- {
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::ZoomOut()
- {
- InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::ZoomToInital()
- {
- InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CVideoComm::ShowLocalVideo(BOOL bShow)
- {
- static BYTE parms[] =
- VTS_BOOL;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- bShow);
- }