CGraphView.cpp
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:3k
源码类别:
VC书籍
开发平台:
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 "cgraphview.h"
- /////////////////////////////////////////////////////////////////////////////
- // CGraphView
- IMPLEMENT_DYNCREATE(CGraphView, CWnd)
- /////////////////////////////////////////////////////////////////////////////
- // CGraphView properties
- unsigned long CGraphView::GetForeColor()
- {
- unsigned long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- void CGraphView::SetForeColor(unsigned long propVal)
- {
- SetProperty(0x1, VT_I4, propVal);
- }
- long CGraphView::GetLineType()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- void CGraphView::SetLineType(long propVal)
- {
- SetProperty(0x2, VT_I4, propVal);
- }
- long CGraphView::GetLineWidth()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
- void CGraphView::SetLineWidth(long propVal)
- {
- SetProperty(0x3, VT_I4, propVal);
- }
- unsigned long CGraphView::GetBackColor()
- {
- unsigned long result;
- GetProperty(0x4, VT_I4, (void*)&result);
- return result;
- }
- void CGraphView::SetBackColor(unsigned long propVal)
- {
- SetProperty(0x4, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CGraphView operations
- void CGraphView::Clear()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CGraphView::SetScale(double x1, double y1, double x2, double y2)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- x1, y1, x2, y2);
- }
- void CGraphView::LineTo(double x, double y)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- x, y);
- }
- void CGraphView::MoveTo(double x, double y)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- x, y);
- }
- void CGraphView::Multiline(long segments, double* xi, double* yi)
- {
- static BYTE parms[] =
- VTS_I4 VTS_PR8 VTS_PR8;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- segments, xi, yi);
- }
- void CGraphView::DrawLine(double x1, double y1, double x2, double y2)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- x1, y1, x2, y2);
- }