资源简介
组态王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++c#结构体转换工具
- C#获取周围可见的wifi网络
- c语言项目五子棋对战局域网.rar
- 任务管理器中隐藏进程 支持win10 win
- C# 键盘鼠标全局钩子拦截键盘鼠标所
- 摄影测量空间后方交会程序合集,含
- 粒子群算法 C#版本 由C++改编
- 基于c语言的语音识别程序
- 求解无向图中任意两点之间的所有路
- 快速傅立叶变换(FFT) C,C#源码
- C#与C++进程间通信
- C#遗传算法程序可视化版
- C++程序和C#程序通讯例程
- C#加载C++\\C的DLL动态链接库
- c#通过dll读取opencv里的mat图片
- 基于C#平台开发的surf算法,可直接运
- 字形轮廓提取显示C#源码
- C# IOCP完成端口模型简单实用高效
- C#callC++dll.pptx
- C++ 垃圾代码生成器
- c++与c#命名管道
- 通过C#调用共享MFC C++项目DLL
- grpc-x86_64-1.27.2-2-any.zip
- C# 调用C++DLL函数参数包含指针
- 基于微信hook的二次开发c#版全功能演
- 基于C#写的TCP 客户端多线程处理源码
- libXL 3.8.0 For Windows 正式授权及使用方
- c#高级编程 第十版 PDF
- CefSharp - 最火热的 Winform 使用 Webkit 内
- C# 调用c++ 库 参数为指针类型导出函数
评论
共有 条评论