阅读:1390回复:1
[原创]IMap::SelectByShape 选不中线Feature?
IPointPtr ipPoint;<br>
ipPoint.CreateInstance( CLSID_Point );<br> if( NULL == ipPoint )<br> return;<br> ipPoint->PutCoords( mapX, mapY );<br> IActiveViewPtr ipActiveView( m_ipMap );<br> HRESULT hr = m_ipMap->SelectByShape( ipPoint, NULL,VARIANT_TRUE ); <br> 用上面的代码是EDN中的, 能选中PLOYGONFeature,选不中POLYLINE Fetaure,什么原因,怎么做呢! |
|
1楼#
发布于:2007-12-20 16:35
<P>把你的ipPoint 用点选择换成用矩形选择,试试</P>
|
|