cwprintocx.h
资源名称:VCdayin.rar [点击查看]
上传用户:smsj_tj
上传日期:2022-05-05
资源大小:187k
文件大小:3k
源码类别:
打印编程
开发平台:
Visual C++
- #if !defined(AFX_CWPRINTOCX_H__DE9B903D_6E74_4A08_8EFF_2F8E87FAC59A__INCLUDED_)
- #define AFX_CWPRINTOCX_H__DE9B903D_6E74_4A08_8EFF_2F8E87FAC59A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // 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.
- /////////////////////////////////////////////////////////////////////////////
- // CCWPrintOcx wrapper class
- class CCWPrintOcx : public CWnd
- {
- protected:
- DECLARE_DYNCREATE(CCWPrintOcx)
- public:
- CLSID const& GetClsid()
- {
- static CLSID const clsid
- = { 0x2df84752, 0x5ff5, 0x4ee6, { 0x89, 0x81, 0xca, 0xb7, 0x39, 0x7c, 0x22, 0xf3 } };
- return clsid;
- }
- virtual BOOL Create(LPCTSTR lpszClassName,
- LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect,
- CWnd* pParentWnd, UINT nID,
- CCreateContext* pContext = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
- BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
- const RECT& rect, CWnd* pParentWnd, UINT nID,
- CFile* pPersist = NULL, BOOL bStorage = FALSE,
- BSTR bstrLicKey = NULL)
- { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
- pPersist, bStorage, bstrLicKey); }
- // Attributes
- public:
- // Operations
- public:
- short SetActiva();
- void SetListCtrlBodyFont(VARIANT* logfont);
- void SetSpan(short sSpan);
- void AddHeadTitle(short sFontSize, LPCTSTR lFontName, LPCTSTR lChangeLine, LPCTSTR lFontB, short sX, LPCTSTR lTitleHead);
- void SetReportColHead(short sFontSize, LPCTSTR lFontB, LPCTSTR lFontName);
- void SetReportColBody(short sFontSize, LPCTSTR lFontB, LPCTSTR lFontName);
- BOOL AddColInfo(short sFontWidth, LPCTSTR lAlign, BOOL bDisplay, BOOL bPrint, LPCTSTR lTotalType, LPCTSTR lColType, LPCTSTR lColName, LPCTSTR lFieldName, short sDecWidth);
- short CreateAndOpen();
- short AddFieldValue(LPCTSTR lFieldValue);
- long ShowModal();
- void SetBottomHeight(short sBottomHeight);
- void SetLineSpace(short sLineSpace);
- void SetColSpace(short sColSpace);
- void SetLeftSpace(short sLeftSpace);
- void AddHeadTitleEx(long iWidth, long iHeight, LPCTSTR lFontName, LPCTSTR cFlags, LPCTSTR cWeight, long lx, LPCTSTR lTitleName);
- short BeginCx();
- void SetReportHeadFontWeight(LPCTSTR sWeight);
- void SetReportBodyFontWeight(LPCTSTR sWeight);
- void SetPaperSize(short sPaperSize);
- void AboutBox();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CWPRINTOCX_H__DE9B903D_6E74_4A08_8EFF_2F8E87FAC59A__INCLUDED_)