windows-nt/Source/XPSP1/NT/printscan/ui/shimgvwr/preview.cpp

65 lines
1.5 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
// 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 "preview.h"
/////////////////////////////////////////////////////////////////////////////
// CPreview
IMPLEMENT_DYNCREATE(CPreview, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CPreview properties
/////////////////////////////////////////////////////////////////////////////
// CPreview operations
void CPreview::ShowFile(LPCTSTR bstrFileName, long iSelectCount)
{
static BYTE parms[] =
VTS_BSTR VTS_I4;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
bstrFileName, iSelectCount);
}
long CPreview::GetPrintable()
{
long result;
InvokeHelper(0x2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CPreview::SetPrintable(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
nNewValue);
}
long CPreview::GetCxImage()
{
long result;
InvokeHelper(0x3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
long CPreview::GetCyImage()
{
long result;
InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
return result;
}
void CPreview::Show(const VARIANT& var)
{
static BYTE parms[] =
VTS_VARIANT;
InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
&var);
}