POSITION circlepos=pView->GetDocument()->m_objects.GetHeadPosition();
if(pos!=NULL) {
int i=0;
int num=pView->GetDocument()->m_objects.GetCount();
while(i<num)
{ CDrawNode* pDrawNode=(CDrawNode*)pView->GetDocument()->m_objects.GetNext(circlepos);
if(pDrawNode!=NULL)
{
if(nIndex==pDrawNode->GetObjIndex())
{
if(abs(length)<abs(width)&&width<0)
deltarect.BottomRight()=pDrawNode->GetHandle(8);
if(abs(length)<abs(width)&&width>0)
deltarect.BottomRight()=pDrawNode->GetHandle(4);
if((abs(length)>abs(width)&&width>0&&length<0)||
(abs(length)>abs(width)&&width<0&&length<0))
deltarect.BottomRight()=pDrawNode->GetHandle(2);
if((abs(length)>abs(width)&&length>0&&width>0)||
(abs(length)>abs(width)&&length>0&&width<0))
deltarect.BottomRight()=pDrawNode->GetHandle(6); }}i++;}}}
pDrawObj->MoveTo(deltarect,pView); }}i++;}}}}
position += delta;
pObj->MoveTo(position, pView);
}
else if (nDragHandle != 0) pObj->MoveHandleTo(nDragHandle, local, pView);
}
lastPoint = local;
|