组态软件设计与开发PDF+源代码
组态软件设计与开发PDF+源代码,VC6.0开发,王亚民、陈青、刘畅生、王水平编著
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3997 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliCntrItem.cpp
文件 1792 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliCntrItem.h
文件 3756 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.clw
文件 5191 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.cpp
文件 5218 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.dsp
文件 537 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.dsw
文件 1414 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.h
文件 66560 2002-04-01 17:52 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.ncb
文件 48640 2002-04-01 17:52 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.opt
文件 2066 2002-04-01 17:47 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.plg
文件 16257 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.rc
文件 687 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.reg
文件 2595 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliDoc.cpp
文件 1489 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliDoc.h
文件 7040 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliView.cpp
文件 2699 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliView.h
文件 2652 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliMainFrm.cpp
文件 1542 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliMainFrm.h
文件 5411 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliReadMe.txt
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCli.ico
文件 399 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCli.rc2
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCliDoc.ico
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esToolbar.bmp
文件 819 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliResource.h
文件 3202 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliSplash.cpp
文件 1159 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliSplash.h
文件 1534 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliSplitFrm.cpp
文件 1397 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliSplitFrm.h
文件 82538 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliSplsh16.bmp
文件 209 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliStdAfx.cpp
............此处省略401个文件信息
// 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 outside-in object
DWORD dwMisc = 0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3997 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliCntrItem.cpp
文件 1792 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliCntrItem.h
文件 3756 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.clw
文件 5191 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.cpp
文件 5218 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.dsp
文件 537 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.dsw
文件 1414 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.h
文件 66560 2002-04-01 17:52 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.ncb
文件 48640 2002-04-01 17:52 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.opt
文件 2066 2002-04-01 17:47 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.plg
文件 16257 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.rc
文件 687 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCli.reg
文件 2595 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliDoc.cpp
文件 1489 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliDoc.h
文件 7040 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliView.cpp
文件 2699 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliDrawCliView.h
文件 2652 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliMainFrm.cpp
文件 1542 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliMainFrm.h
文件 5411 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliReadMe.txt
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCli.ico
文件 399 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCli.rc2
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esDrawCliDoc.ico
文件 1078 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCli
esToolbar.bmp
文件 819 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliResource.h
文件 3202 2002-03-26 09:13 组态软件设计与开发(源代码)源代码Cha02DrawCliSplash.cpp
文件 1159 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliSplash.h
文件 1534 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliSplitFrm.cpp
文件 1397 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliSplitFrm.h
文件 82538 2002-03-26 09:08 组态软件设计与开发(源代码)源代码Cha02DrawCliSplsh16.bmp
文件 209 2002-03-26 08:41 组态软件设计与开发(源代码)源代码Cha02DrawCliStdAfx.cpp
............此处省略401个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)