资源简介
组态王V6.5版本的源代码,在工业监控领域应用较广。采用MFC编写

代码片段和文件信息
//Download by http://www.NewXing.com
// CntrItem.cpp : implementation of the CDrawItem class
//
#include “stdafx.h“
#include “DrawCli.h“
#include “DrawCliDoc.h“
#include “DrawCliView.h“
#include “CntrItem.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDrawItem implementation
IMPLEMENT_SERIAL(CDrawItem COleClientItem 0)
CDrawItem::CDrawItem(CDrawCliDoc* pContainer)
: COleClientItem(pContainer)
{
// TODO: add one-time construction code here
}
CDrawItem::~CDrawItem()
{
// TODO: add cleanup code here
}
void CDrawItem::onchange(OLE_NOTIFICATION nCode DWORD dwParam)
{
ASSERT_VALID(this);
COleClientItem::onchange(nCode dwParam);
// When an item is being edited (either in-place or fully open)
// it sends onchange notifications for changes in the state of the
// item or visual appearance of its content.
// TODO: invalidate the item by calling UpdateAllViews
// (with hints appropriate to your application)
GetDocument()->UpdateAllViews(NULL);
// for now just update ALL views/no hints
}
BOOL CDrawItem::onchangeItemPosition(const CRect& rectPos)
{
ASSERT_VALID(this);
// During in-place activation CDrawItem::onchangeItemPosition
// is called by the server to change the position of the in-place
// window. Usually this is a result of the data in the server
// document changing such that the extent has changed or as a result
// of in-place resizing.
//
// The default here is to call the base class which will call
// COleClientItem::SetItemRects to move the item
// to the new position.
if (!COleClientItem::onchangeItemPosition(rectPos))
return FALSE;
// TODO: update any cache you may have of the item‘s rectangle/extent
return TRUE;
}
void CDrawItem::OnGetItemPosition(CRect& rPosition)
{
ASSERT_VALID(this);
// During in-place activation CDrawItem::OnGetItemPosition
// will be called to determine the location of this item. The default
// implementation created from AppWizard simply returns a hard-coded
// rectangle. Usually this rectangle would reflect the current
// position of the item relative to the view used for activation.
// You can obtain the view by calling CDrawItem::GetActiveView.
// TODO: return correct rectangle (in pixels) in rPosition
rPosition.SetRect(10 10 210 210);
}
void CDrawItem::onactivate()
{
// Allow only one inplace activate item per frame
CDrawCliView* pView = GetActiveView();
ASSERT_VALID(pView);
COleClientItem* pItem = GetDocument()->GetInPlaceActiveItem(pView);
if (pItem != NULL && pItem != this)
pItem->Close();
COleClientItem::onactivate();
}
void CDrawItem::ondeactivateUI(BOOL bUndoable)
{
COleClientItem::ondeactivateUI(bUndoable);
// Hide the object if it is not an o
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 3124 2001-06-08 08:36 www.NewXing.com\zutai5\ReadMe.txt
....... 4239 2002-01-24 10:22 www.NewXing.com\zutai4\ReadMe.txt
....... 5411 2002-03-26 08:41 www.NewXing.com\zutai1\ReadMe.txt
....... 5556 2000-05-07 09:20 www.NewXing.com\zutai2\ReadMe.txt
....... 5556 2000-05-07 09:20 www.NewXing.com\zutai3\ReadMe.txt
....... 253 2002-04-01 17:50 www.NewXing.com\zutai2\HLP\DrawCli.LOG
....... 4173 2000-05-12 14:41 www.NewXing.com\zutai3\HLP\DrawCli.LOG
....... 1408 2000-05-07 09:20 www.NewXing.com\zutai2\MakeHelp.bat
....... 1408 2000-05-07 09:20 www.NewXing.com\zutai3\MakeHelp.bat
文件 1830 2013-12-02 03:38 www.NewXing.com\zutai1\CntrItem.h
文件 1933 2013-12-02 03:38 www.NewXing.com\zutai2\CntrItem.h
文件 1933 2013-12-02 03:38 www.NewXing.com\zutai3\CntrItem.h
文件 1539 2013-12-02 03:38 www.NewXing.com\zutai4\CommSetDlg.h
文件 1452 2013-12-02 03:38 www.NewXing.com\zutai1\DrawCli.h
文件 1462 2013-12-02 03:38 www.NewXing.com\zutai2\DrawCli.h
文件 1703 2013-12-02 03:38 www.NewXing.com\zutai3\DrawCli.h
文件 1527 2013-12-02 03:38 www.NewXing.com\zutai1\DrawCliDoc.h
文件 2737 2013-12-02 03:38 www.NewXing.com\zutai1\DrawCliView.h
文件 1842 2013-12-02 03:38 www.NewXing.com\zutai2\DrawDoc.h
文件 1842 2013-12-02 03:38 www.NewXing.com\zutai3\DrawDoc.h
文件 3562 2013-12-02 03:38 www.NewXing.com\zutai2\DrawObj.h
文件 3606 2013-12-02 03:38 www.NewXing.com\zutai3\DrawObj.h
文件 2294 2013-12-02 03:38 www.NewXing.com\zutai2\DrawTool.h
文件 2294 2013-12-02 03:38 www.NewXing.com\zutai3\DrawTool.h
文件 5412 2013-12-02 03:38 www.NewXing.com\zutai2\DrawVw.h
文件 5486 2013-12-02 03:38 www.NewXing.com\zutai3\DrawVw.h
文件 1478 2013-12-02 03:38 www.NewXing.com\zutai4\MainFrm.h
文件 1563 2013-12-02 03:38 www.NewXing.com\zutai2\MainFrm.h
文件 1580 2013-12-02 03:38 www.NewXing.com\zutai1\MainFrm.h
文件 1649 2013-12-02 03:38 www.NewXing.com\zutai3\MainFrm.h
............此处省略190个文件信息
相关资源
- c#与西门子1500通讯
- c++调用C# COM 参数是结构体数组
- CTP上期技术平台API及C#封装更新到CT
- C#神思二代身份证读卡程序 demo
- C#调用百度地图获取经纬度
- 03 C#与C++dll互相传递字符串.rar
- c# 华大HD900身份证阅读器操作类
- 即时通讯开发源码终极版C#.NETC++都有
- C#C++混合编程C#调用非托管C++类
- c#图书管理系统+详细数据库设计文档
- Visual Studio 2010 Express 学习版
- C++调用C#库例程
- c#与STK开发
- OPC Data Access 3.00 Source Code
- C#/C++麦克风插拔检测
- 使用C#创建webservice服务,并使用服务
- CTP接口 C#封装版
- C# 版VNC、远程连接
- 求解一元四次方程(vbvcc#excelhtml)-
- C#游戏开发快速入门
- [原创]实现用VB.Net(C#)开发K3 BOS 插件
- C# To C++ Converter 17.10.2 (最新破解版
- C语言 wav文件读取头文件和数据
- C#火车订票系统
- C++调用C#dll代码
- C#调用C++的dll,回调函数,string和in
- C++dll生成给C#调用
- 三菱PLC 上位机的SDK文档(1)一般的人
- 关联规则fpgrowthc、c#和matlab算法附讲解
- 基于Visual C#的DirectX开发.rar
评论
共有 条评论