D
dearchen
Unregistered / Unconfirmed
GUEST, unregistred user!
我的程序如下:(是BCB的)
TPoint nPoint1[4];
nPoint1[0]= GetPoint(m_Line->StartP,m_Line->EndP,90,3,&nPoint1[1]);
nPoint1[3]= GetPoint(m_Line->EndP,m_Line->StartP,90,3,&nPoint1[2]);
HRGN nRgn =::CreatePolygonRgn(nPoint1,4,WINDING);
if (PtInRegion(nRgn,nPoint.x,nPoint.y))
m_Line->ShowHandle = !m_Line->ShowHandle;
}
:eleteObject(nRgn);//*—……%
编译时在*—……%行出错:说nRgn 没有定义,奇怪的很!
当我把*—……%行注释掉后程序仍能执行,满足我的要求,但好象用了CreatePolygonRgn
必须用DeleteObject的说!
Help me!!!!!
TPoint nPoint1[4];
nPoint1[0]= GetPoint(m_Line->StartP,m_Line->EndP,90,3,&nPoint1[1]);
nPoint1[3]= GetPoint(m_Line->EndP,m_Line->StartP,90,3,&nPoint1[2]);
HRGN nRgn =::CreatePolygonRgn(nPoint1,4,WINDING);
if (PtInRegion(nRgn,nPoint.x,nPoint.y))
m_Line->ShowHandle = !m_Line->ShowHandle;
}
:eleteObject(nRgn);//*—……%
编译时在*—……%行出错:说nRgn 没有定义,奇怪的很!
当我把*—……%行注释掉后程序仍能执行,满足我的要求,但好象用了CreatePolygonRgn
必须用DeleteObject的说!
Help me!!!!!