www.pudn.com > ScrollBitmapdemo.rar > commondialog.cpp, change:2002-10-24,size:11232b


// 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 "commondialog.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CCommonDialog1 
 
IMPLEMENT_DYNCREATE(CCommonDialog1, CWnd) 
 
///////////////////////////////////////////////////////////////////////////// 
// CCommonDialog1 properties 
 
///////////////////////////////////////////////////////////////////////////// 
// CCommonDialog1 operations 
 
CString CCommonDialog1::GetFileName() 
{ 
	CString result; 
	InvokeHelper(0x1, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFileName(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
CString CCommonDialog1::GetDialogTitle() 
{ 
	CString result; 
	InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetDialogTitle(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
CString CCommonDialog1::GetFilter() 
{ 
	CString result; 
	InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFilter(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
CString CCommonDialog1::GetDefaultExt() 
{ 
	CString result; 
	InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetDefaultExt(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
CString CCommonDialog1::GetInitDir() 
{ 
	CString result; 
	InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetInitDir(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
unsigned long CCommonDialog1::GetColor() 
{ 
	unsigned long result; 
	InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetColor(unsigned long newValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 newValue); 
} 
 
long CCommonDialog1::GetFlags() 
{ 
	long result; 
	InvokeHelper(0x7, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFlags(long nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
CString CCommonDialog1::GetFontName() 
{ 
	CString result; 
	InvokeHelper(0x8, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontName(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
BOOL CCommonDialog1::GetFontBold() 
{ 
	BOOL result; 
	InvokeHelper(0x9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontBold(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0x9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
BOOL CCommonDialog1::GetFontItalic() 
{ 
	BOOL result; 
	InvokeHelper(0xa, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontItalic(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0xa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
BOOL CCommonDialog1::GetFontStrikeThru() 
{ 
	BOOL result; 
	InvokeHelper(0xb, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontStrikeThru(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0xb, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
BOOL CCommonDialog1::GetFontUnderLine() 
{ 
	BOOL result; 
	InvokeHelper(0xc, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontUnderLine(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0xc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
short CCommonDialog1::GetFromPage() 
{ 
	short result; 
	InvokeHelper(0xd, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFromPage(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0xd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
short CCommonDialog1::GetToPage() 
{ 
	short result; 
	InvokeHelper(0xe, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetToPage(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0xe, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
short CCommonDialog1::GetMin() 
{ 
	short result; 
	InvokeHelper(0xf, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetMin(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0xf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
short CCommonDialog1::GetMax() 
{ 
	short result; 
	InvokeHelper(0x10, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetMax(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x10, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
short CCommonDialog1::GetCopies() 
{ 
	short result; 
	InvokeHelper(0x11, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetCopies(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x11, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
BOOL CCommonDialog1::GetCancelError() 
{ 
	BOOL result; 
	InvokeHelper(0x12, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetCancelError(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0x12, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
CString CCommonDialog1::GetHelpFile() 
{ 
	CString result; 
	InvokeHelper(0x13, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetHelpFile(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x13, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
short CCommonDialog1::GetHelpCommand() 
{ 
	short result; 
	InvokeHelper(0x14, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetHelpCommand(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x14, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
CString CCommonDialog1::GetHelpKey() 
{ 
	CString result; 
	InvokeHelper(0x15, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetHelpKey(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x15, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
BOOL CCommonDialog1::GetPrinterDefault() 
{ 
	BOOL result; 
	InvokeHelper(0x16, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetPrinterDefault(BOOL bNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0x16, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 bNewValue); 
} 
 
short CCommonDialog1::GetFilterIndex() 
{ 
	short result; 
	InvokeHelper(0x17, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFilterIndex(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x17, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
long CCommonDialog1::GetHelpContext() 
{ 
	long result; 
	InvokeHelper(0x18, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetHelpContext(long nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x18, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
float CCommonDialog1::GetFontSize() 
{ 
	float result; 
	InvokeHelper(0x19, DISPATCH_PROPERTYGET, VT_R4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFontSize(float newValue) 
{ 
	static BYTE parms[] = 
		VTS_R4; 
	InvokeHelper(0x19, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 newValue); 
} 
 
short CCommonDialog1::GetAction() 
{ 
	short result; 
	InvokeHelper(0x1a, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetAction(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x1a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
short CCommonDialog1::GetMaxFileSize() 
{ 
	short result; 
	InvokeHelper(0x1b, DISPATCH_PROPERTYGET, VT_I2, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetMaxFileSize(short nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I2; 
	InvokeHelper(0x1b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
long CCommonDialog1::GetHDC() 
{ 
	long result; 
	InvokeHelper(0x1c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetHDC(long nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x1c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
} 
 
CString CCommonDialog1::GetFileTitle() 
{ 
	CString result; 
	InvokeHelper(0x1d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetFileTitle(LPCTSTR lpszNewValue) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x1d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 lpszNewValue); 
} 
 
void CCommonDialog1::ShowOpen() 
{ 
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CCommonDialog1::ShowSave() 
{ 
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CCommonDialog1::ShowColor() 
{ 
	InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CCommonDialog1::ShowFont() 
{ 
	InvokeHelper(0x21, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CCommonDialog1::ShowPrinter() 
{ 
	InvokeHelper(0x22, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CCommonDialog1::ShowHelp() 
{ 
	InvokeHelper(0x23, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
long CCommonDialog1::GetOrientation() 
{ 
	long result; 
	InvokeHelper(0x24, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CCommonDialog1::SetOrientation(long nNewValue) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x24, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, 
		 nNewValue); 
}