int index=pDrawCircle->GetObjIndex();
if(index)
{//判断
circlerect=pDrawCircle->m_position;
pView->DocToClient(circlerect);
if(circlerect.PtInRect(point))
{
local=pDrawCircle->GetHandle(8);
BackConnect=pDrawCircle->GetObjIndex();
}
}}i++;}}}
CPoint delta = (CPoint)(local - lastPoint);
pos = pView->m_selection.GetHeadPosition();
while (pos != NULL)
{
CDrawObj* pObj = pView->m_selection.GetNext(pos);
CRect position = pObj->m_position;
if (c_drawShape == arrow)
{//记录终节点
pObj->m_BackConnect=BackConnect;
pObj->m_bBackConnect=true;
}
//以下实现移动节点,使所有的箭线跟随节点同步移动
if (selectMode == move)
{
if(pView->m_selection.GetCount()==1)
{
CDrawNode* pDrawCircle=(CDrawNode*)pObj;
int Index=pDrawCircle->GetObjIndex();
if(Index) //移动节点
{
POSITION Rectpos=pView->GetDocument()->m_objects.GetHeadPosition();
if(Rectpos!=NULL)
{
int i=0;
|