資源簡介
此安裝包是關于的組態軟件設計與開發(源代碼),希望可以幫助你

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-02-19?14:16??組態軟件設計與開發(源代碼)\
?????目錄???????????0??2013-02-19?14:16??組態軟件設計與開發(源代碼)\Cha02\
?????目錄???????????0??2013-02-19?14:16??組態軟件設計與開發(源代碼)\Cha02\DrawCli\
?????文件????????3997??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.cpp
?????文件????????3425??2009-11-06?16:37??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.dsp
?????文件?????????524??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.dsw
?????文件????????1792??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.h
?????文件???????33792??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.ncb
?????文件???????48640??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.opt
?????文件????????1090??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\CntrItem.plg
?????目錄???????????0??2013-02-19?14:16??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\
?????文件???????34149??2009-11-06?16:37??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\CntrItem.obj
?????文件?????6117392??2009-11-06?16:37??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\CntrItem.pch
?????文件???????25600??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\CntrItem.pdb
?????文件??????238592??2009-11-06?16:38??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\vc60.idb
?????文件???????77824??2009-11-06?16:37??組態軟件設計與開發(源代碼)\Cha02\DrawCli\Debug\vc60.pdb
?????文件??????115716??2009-11-06?16:36??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.aps
?????文件????????3756??2002-03-26?09:13??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.clw
?????文件????????5191??2002-03-26?09:08??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.cpp
?????文件????????5218??2002-03-26?09:13??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.dsp
?????文件?????????537??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.dsw
?????文件????????1414??2002-03-26?09:08??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.h
?????文件???????66560??2002-04-01?17:52??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.ncb
?????文件???????48640??2002-04-01?17:52??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.opt
?????文件????????2066??2002-04-01?17:47??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.plg
?????文件???????16257??2002-03-26?09:08??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.rc
?????文件?????????687??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCli.reg
?????文件????????2595??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCliDoc.cpp
?????文件????????1489??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCliDoc.h
?????文件????????7040??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCliView.cpp
?????文件????????2699??2002-03-26?08:41??組態軟件設計與開發(源代碼)\Cha02\DrawCli\DrawCliView.h
............此處省略406個文件信息
- 上一篇:dubbo官方權威指南,非掃描版
- 下一篇:題目基于智能可穿戴設備的運動檢測
評論
共有 條評論