www.pudn.com > PDFView.rar > pdfview.cpp, change:2009-05-21,size:6290b


// 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 "pdfview.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CPdfview 
 
IMPLEMENT_DYNCREATE(CPdfview, CWnd) 
 
///////////////////////////////////////////////////////////////////////////// 
// CPdfview properties 
 
///////////////////////////////////////////////////////////////////////////// 
// CPdfview operations 
 
BOOL CPdfview::OpenPDF(LPCTSTR lpszPDFFile, LPCTSTR lpszUserPwd, LPCTSTR lpszOwnerPwd) 
{ 
	BOOL result; 
	static BYTE parms[] = 
		VTS_BSTR VTS_BSTR VTS_BSTR; 
	InvokeHelper(0x1, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, 
		lpszPDFFile, lpszUserPwd, lpszOwnerPwd); 
	return result; 
} 
 
void CPdfview::ClosePDF() 
{ 
	InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
long CPdfview::RunCommand(long nCode, long nPara1, long nPara2, long nPara3) 
{ 
	long result; 
	static BYTE parms[] = 
		VTS_I4 VTS_I4 VTS_I4 VTS_I4; 
	InvokeHelper(0x3, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		nCode, nPara1, nPara2, nPara3); 
	return result; 
} 
 
void CPdfview::SetFindText(LPCTSTR lpszFindText) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 lpszFindText); 
} 
 
void CPdfview::SetViewMode(long nViewMode) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 nViewMode); 
} 
 
void CPdfview::RotateViewLeft() 
{ 
	InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::RotateViewRight() 
{ 
	InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewNextPage() 
{ 
	InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewPreviousPage() 
{ 
	InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewFirstPage() 
{ 
	InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewLastPage() 
{ 
	InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewPage() 
{ 
	InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::FindPreviousText() 
{ 
	InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::FindNextText() 
{ 
	InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ZoomFitPage() 
{ 
	InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ZoomActualPage() 
{ 
	InvokeHelper(0x10, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ZoomFitWidth() 
{ 
	InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::Zoom(float nZoom) 
{ 
	static BYTE parms[] = 
		VTS_R4; 
	InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 nZoom); 
} 
 
void CPdfview::ViewModeSinglePage() 
{ 
	InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewModeFacing() 
{ 
	InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewModeContinuous() 
{ 
	InvokeHelper(0x15, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewModeContinuousFacing() 
{ 
	InvokeHelper(0x16, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ShowHideBookmarks() 
{ 
	InvokeHelper(0x17, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::SetRegCode(LPCTSTR lpszRegCode) 
{ 
	static BYTE parms[] = 
		VTS_BSTR; 
	InvokeHelper(0x18, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 lpszRegCode); 
} 
 
void CPdfview::ZoomIn() 
{ 
	InvokeHelper(0x19, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ZoomOut() 
{ 
	InvokeHelper(0x1a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
} 
 
void CPdfview::ViewGotoPage(long nPageIndex) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x1b, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 nPageIndex); 
} 
 
long CPdfview::SetGotoPageNumber(long nPageIndex) 
{ 
	long result; 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x1c, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		nPageIndex); 
	return result; 
} 
 
long CPdfview::GetCurrentPage() 
{ 
	long result; 
	InvokeHelper(0x1d, DISPATCH_METHOD, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
long CPdfview::GetPageTotalCount() 
{ 
	long result; 
	InvokeHelper(0x1e, DISPATCH_METHOD, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
float CPdfview::GetCurrentZoom() 
{ 
	float result; 
	InvokeHelper(0x1f, DISPATCH_METHOD, VT_R4, (void*)&result, NULL); 
	return result; 
} 
 
void CPdfview::SetMsgCallbackWnd(long hMsgWnd) 
{ 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, parms, 
		 hMsgWnd); 
} 
 
long CPdfview::FlattenPDF(LPCTSTR lpszInPDF, LPCTSTR lpszOutPDF) 
{ 
	long result; 
	static BYTE parms[] = 
		VTS_BSTR VTS_BSTR; 
	InvokeHelper(0x21, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		lpszInPDF, lpszOutPDF); 
	return result; 
} 
 
BOOL CPdfview::EnableAnnotations(BOOL bEnable) 
{ 
	BOOL result; 
	static BYTE parms[] = 
		VTS_BOOL; 
	InvokeHelper(0x22, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, 
		bEnable); 
	return result; 
} 
 
BOOL CPdfview::OpenPDFFromMem(long lpPDFData, long nPDFDataLen, LPCTSTR lpszUserPwd, LPCTSTR lpszOwnerPwd) 
{ 
	BOOL result; 
	static BYTE parms[] = 
		VTS_I4 VTS_I4 VTS_BSTR VTS_BSTR; 
	InvokeHelper(0x23, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, 
		lpPDFData, nPDFDataLen, lpszUserPwd, lpszOwnerPwd); 
	return result; 
} 
 
long CPdfview::EnableLaunchLink(long bEnable) 
{ 
	long result; 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x24, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		bEnable); 
	return result; 
} 
 
long CPdfview::EnableMouseWhellInFacingMode(long bEnable) 
{ 
	long result; 
	static BYTE parms[] = 
		VTS_I4; 
	InvokeHelper(0x25, DISPATCH_METHOD, VT_I4, (void*)&result, parms, 
		bEnable); 
	return result; 
} 
 
long CPdfview::GetScrollBar() 
{ 
	long result; 
	InvokeHelper(0x26, DISPATCH_METHOD, VT_I4, (void*)&result, NULL); 
	return result; 
} 
 
void CPdfview::AboutBox() 
{ 
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL); 
}