cwprintocx.cpp
资源名称:VCdayin.rar [点击查看]
上传用户:smsj_tj
上传日期:2022-05-05
资源大小:187k
文件大小:5k
源码类别:
打印编程
开发平台:
Visual C++
- // 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 "cwprintocx.h"
- /////////////////////////////////////////////////////////////////////////////
- // CCWPrintOcx
- IMPLEMENT_DYNCREATE(CCWPrintOcx, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CCWPrintOcx properties
- /////////////////////////////////////////////////////////////////////////////
- // CCWPrintOcx operations
- short CCWPrintOcx::SetActiva()
- {
- short result;
- InvokeHelper(0x1, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
- void CCWPrintOcx::SetListCtrlBodyFont(VARIANT* logfont)
- {
- static BYTE parms[] =
- VTS_PVARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- logfont);
- }
- void CCWPrintOcx::SetSpan(short sSpan)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sSpan);
- }
- void CCWPrintOcx::AddHeadTitle(short sFontSize, LPCTSTR lFontName, LPCTSTR lChangeLine, LPCTSTR lFontB, short sX, LPCTSTR lTitleHead)
- {
- static BYTE parms[] =
- VTS_I2 VTS_BSTR VTS_BSTR VTS_BSTR VTS_I2 VTS_BSTR;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sFontSize, lFontName, lChangeLine, lFontB, sX, lTitleHead);
- }
- void CCWPrintOcx::SetReportColHead(short sFontSize, LPCTSTR lFontB, LPCTSTR lFontName)
- {
- static BYTE parms[] =
- VTS_I2 VTS_BSTR VTS_BSTR;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sFontSize, lFontB, lFontName);
- }
- void CCWPrintOcx::SetReportColBody(short sFontSize, LPCTSTR lFontB, LPCTSTR lFontName)
- {
- static BYTE parms[] =
- VTS_I2 VTS_BSTR VTS_BSTR;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sFontSize, lFontB, lFontName);
- }
- BOOL CCWPrintOcx::AddColInfo(short sFontWidth, LPCTSTR lAlign, BOOL bDisplay, BOOL bPrint, LPCTSTR lTotalType, LPCTSTR lColType, LPCTSTR lColName, LPCTSTR lFieldName, short sDecWidth)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_I2 VTS_BSTR VTS_BOOL VTS_BOOL VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_I2;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- sFontWidth, lAlign, bDisplay, bPrint, lTotalType, lColType, lColName, lFieldName, sDecWidth);
- return result;
- }
- short CCWPrintOcx::CreateAndOpen()
- {
- short result;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
- short CCWPrintOcx::AddFieldValue(LPCTSTR lFieldValue)
- {
- short result;
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_I2, (void*)&result, parms,
- lFieldValue);
- return result;
- }
- long CCWPrintOcx::ShowModal()
- {
- long result;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_I4, (void*)&result, NULL);
- return result;
- }
- void CCWPrintOcx::SetBottomHeight(short sBottomHeight)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sBottomHeight);
- }
- void CCWPrintOcx::SetLineSpace(short sLineSpace)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xc, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sLineSpace);
- }
- void CCWPrintOcx::SetColSpace(short sColSpace)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sColSpace);
- }
- void CCWPrintOcx::SetLeftSpace(short sLeftSpace)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sLeftSpace);
- }
- void CCWPrintOcx::AddHeadTitleEx(long iWidth, long iHeight, LPCTSTR lFontName, LPCTSTR cFlags, LPCTSTR cWeight, long lx, LPCTSTR lTitleName)
- {
- static BYTE parms[] =
- VTS_I4 VTS_I4 VTS_BSTR VTS_BSTR VTS_BSTR VTS_I4 VTS_BSTR;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- iWidth, iHeight, lFontName, cFlags, cWeight, lx, lTitleName);
- }
- short CCWPrintOcx::BeginCx()
- {
- short result;
- InvokeHelper(0x10, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
- void CCWPrintOcx::SetReportHeadFontWeight(LPCTSTR sWeight)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x11, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sWeight);
- }
- void CCWPrintOcx::SetReportBodyFontWeight(LPCTSTR sWeight)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x12, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sWeight);
- }
- void CCWPrintOcx::SetPaperSize(short sPaperSize)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x13, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- sPaperSize);
- }
- void CCWPrintOcx::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }