// 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 "videoedit1.h"

// Dispatch interfaces referenced by this interface
#include "wmvprofiles.h"
#include "videocompressors.h"
#include "audiocompressors.h"
#include "transitions.h"

/////////////////////////////////////////////////////////////////////////////
// CVideoEdit

IMPLEMENT_DYNCREATE(CVideoEdit, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CVideoEdit properties

CWMVProfiles CVideoEdit::GetWMVProfiles()
{
	LPDISPATCH pDispatch;
	GetProperty(0x1, VT_DISPATCH, (void*)&pDispatch);
	return CWMVProfiles(pDispatch);
}

void CVideoEdit::SetWMVProfiles(LPDISPATCH propVal)
{
	SetProperty(0x1, VT_DISPATCH, propVal);
}

short CVideoEdit::GetWMVProfile()
{
	short result;
	GetProperty(0x2, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetWMVProfile(short propVal)
{
	SetProperty(0x2, VT_I2, propVal);
}

short CVideoEdit::GetVideoCompressor()
{
	short result;
	GetProperty(0x3, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetVideoCompressor(short propVal)
{
	SetProperty(0x3, VT_I2, propVal);
}

CVideoCompressors CVideoEdit::GetVideoCompressors()
{
	LPDISPATCH pDispatch;
	GetProperty(0x4, VT_DISPATCH, (void*)&pDispatch);
	return CVideoCompressors(pDispatch);
}

void CVideoEdit::SetVideoCompressors(LPDISPATCH propVal)
{
	SetProperty(0x4, VT_DISPATCH, propVal);
}

BOOL CVideoEdit::GetUseVideoCompressor()
{
	BOOL result;
	GetProperty(0x5, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetUseVideoCompressor(BOOL propVal)
{
	SetProperty(0x5, VT_BOOL, propVal);
}

short CVideoEdit::GetAudioCompressor()
{
	short result;
	GetProperty(0x6, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetAudioCompressor(short propVal)
{
	SetProperty(0x6, VT_I2, propVal);
}

CAudioCompressors CVideoEdit::GetAudioCompressors()
{
	LPDISPATCH pDispatch;
	GetProperty(0x7, VT_DISPATCH, (void*)&pDispatch);
	return CAudioCompressors(pDispatch);
}

void CVideoEdit::SetAudioCompressors(LPDISPATCH propVal)
{
	SetProperty(0x7, VT_DISPATCH, propVal);
}

BOOL CVideoEdit::GetUseAudioCompressor()
{
	BOOL result;
	GetProperty(0x8, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetUseAudioCompressor(BOOL propVal)
{
	SetProperty(0x8, VT_BOOL, propVal);
}

short CVideoEdit::GetTransition()
{
	short result;
	GetProperty(0x9, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetTransition(short propVal)
{
	SetProperty(0x9, VT_I2, propVal);
}

CTransitions CVideoEdit::GetTransitions()
{
	LPDISPATCH pDispatch;
	GetProperty(0xa, VT_DISPATCH, (void*)&pDispatch);
	return CTransitions(pDispatch);
}

void CVideoEdit::SetTransitions(LPDISPATCH propVal)
{
	SetProperty(0xa, VT_DISPATCH, propVal);
}

short CVideoEdit::GetOutputFileHeight()
{
	short result;
	GetProperty(0xb, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetOutputFileHeight(short propVal)
{
	SetProperty(0xb, VT_I2, propVal);
}

short CVideoEdit::GetOutputFileWidth()
{
	short result;
	GetProperty(0xc, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetOutputFileWidth(short propVal)
{
	SetProperty(0xc, VT_I2, propVal);
}

short CVideoEdit::GetVideoSampleSize()
{
	short result;
	GetProperty(0xd, VT_I2, (void*)&result);
	return result;
}

void CVideoEdit::SetVideoSampleSize(short propVal)
{
	SetProperty(0xd, VT_I2, propVal);
}

BOOL CVideoEdit::GetOutputAudio()
{
	BOOL result;
	GetProperty(0xe, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetOutputAudio(BOOL propVal)
{
	SetProperty(0xe, VT_BOOL, propVal);
}

long CVideoEdit::GetOutputType()
{
	long result;
	GetProperty(0xf, VT_I4, (void*)&result);
	return result;
}

void CVideoEdit::SetOutputType(long propVal)
{
	SetProperty(0xf, VT_I4, propVal);
}

float CVideoEdit::GetFrameRate()
{
	float result;
	GetProperty(0x10, VT_R4, (void*)&result);
	return result;
}

void CVideoEdit::SetFrameRate(float propVal)
{
	SetProperty(0x10, VT_R4, propVal);
}

long CVideoEdit::GetMPEGQuality()
{
	long result;
	GetProperty(0x11, VT_I4, (void*)&result);
	return result;
}

void CVideoEdit::SetMPEGQuality(long propVal)
{
	SetProperty(0x11, VT_I4, propVal);
}

BOOL CVideoEdit::GetMPEGVBRMode()
{
	BOOL result;
	GetProperty(0x12, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetMPEGVBRMode(BOOL propVal)
{
	SetProperty(0x12, VT_BOOL, propVal);
}

long CVideoEdit::GetMPEGVideoBitrate()
{
	long result;
	GetProperty(0x13, VT_I4, (void*)&result);
	return result;
}

void CVideoEdit::SetMPEGVideoBitrate(long propVal)
{
	SetProperty(0x13, VT_I4, propVal);
}

long CVideoEdit::GetMPEGAudioBitrate()
{
	long result;
	GetProperty(0x14, VT_I4, (void*)&result);
	return result;
}

void CVideoEdit::SetMPEGAudioBitrate(long propVal)
{
	SetProperty(0x14, VT_I4, propVal);
}

BOOL CVideoEdit::GetEnumTransitions()
{
	BOOL result;
	GetProperty(0x15, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetEnumTransitions(BOOL propVal)
{
	SetProperty(0x15, VT_BOOL, propVal);
}

BOOL CVideoEdit::GetEnumWMVProfiles()
{
	BOOL result;
	GetProperty(0x16, VT_BOOL, (void*)&result);
	return result;
}

void CVideoEdit::SetEnumWMVProfiles(BOOL propVal)
{
	SetProperty(0x16, VT_BOOL, propVal);
}

CString CVideoEdit::GetWMVCustomFileName()
{
	CString result;
	GetProperty(0x17, VT_BSTR, (void*)&result);
	return result;
}

void CVideoEdit::SetWMVCustomFileName(LPCTSTR propVal)
{
	SetProperty(0x17, VT_BSTR, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CVideoEdit operations

BOOL CVideoEdit::Save(LPCTSTR strFileName)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x18, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strFileName);
	return result;
}

void CVideoEdit::Cancel()
{
	InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

double CVideoEdit::GetFileDuration(LPCTSTR strFileName)
{
	double result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x1a, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
		strFileName);
	return result;
}

double CVideoEdit::GetTotalDuration()
{
	double result;
	InvokeHelper(0x1b, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
	return result;
}

BOOL CVideoEdit::Preview()
{
	BOOL result;
	InvokeHelper(0x1c, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
	return result;
}

BOOL CVideoEdit::AddAudio(LPCTSTR strFile, double iAudioStart, double iAudioStop)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_R8 VTS_R8;
	InvokeHelper(0x1d, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strFile, iAudioStart, iAudioStop);
	return result;
}

BOOL CVideoEdit::AddVideo(LPCTSTR strFile, double iVideoStart, double iVideoStop, short iStretchMode)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_R8 VTS_R8 VTS_I2;
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strFile, iVideoStart, iVideoStop, iStretchMode);
	return result;
}

BOOL CVideoEdit::AddBgVideo(LPCTSTR strFile, double iVideoStart, double iVideoStop, short iStretchMode)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_R8 VTS_R8 VTS_I2;
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strFile, iVideoStart, iVideoStop, iStretchMode);
	return result;
}

BOOL CVideoEdit::AddTransition(short iTransitionID, double iStart, double iStop)
{
	BOOL result;
	static BYTE parms[] =
		VTS_I2 VTS_R8 VTS_R8;
	InvokeHelper(0x20, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		iTransitionID, iStart, iStop);
	return result;
}

BOOL CVideoEdit::GetFrame(LPCTSTR strInputFile, double iSecond, LPCTSTR strBitmapFile)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_R8 VTS_BSTR;
	InvokeHelper(0x21, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strInputFile, iSecond, strBitmapFile);
	return result;
}

BOOL CVideoEdit::GetFrameBySize(LPCTSTR strInputFile, double iSecond, LPCTSTR strBitmapFile, short iWidth, short iHeight)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_R8 VTS_BSTR VTS_I2 VTS_I2;
	InvokeHelper(0x22, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strInputFile, iSecond, strBitmapFile, iWidth, iHeight);
	return result;
}

short CVideoEdit::GetFileHeight(LPCTSTR strFileName)
{
	short result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x23, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		strFileName);
	return result;
}

short CVideoEdit::GetFileWidth(LPCTSTR strFileName)
{
	short result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x24, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
		strFileName);
	return result;
}

double CVideoEdit::GetFileFrameRate(LPCTSTR strFileName)
{
	double result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x25, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
		strFileName);
	return result;
}

BOOL CVideoEdit::Save2Wave(LPCTSTR strOutputFile, short iChannels, short iSamplesPerSec, short iBitsPerSample)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR VTS_I2 VTS_I2 VTS_I2;
	InvokeHelper(0x26, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strOutputFile, iChannels, iSamplesPerSec, iBitsPerSample);
	return result;
}

void CVideoEdit::InitControl()
{
	InvokeHelper(0x27, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

void CVideoEdit::Stop()
{
	InvokeHelper(0x28, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

BOOL CVideoEdit::Save2WMA(LPCTSTR strFileName)
{
	BOOL result;
	static BYTE parms[] =
		VTS_BSTR;
	InvokeHelper(0x29, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		strFileName);
	return result;
}

void CVideoEdit::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
