riding
路人甲
路人甲
  • 注册日期2007-09-05
  • 发帖数8
  • QQ
  • 铜币100枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1389回复:1

[原创]IMap::SelectByShape 选不中线Feature?

楼主#
更多 发布于:2007-12-15 15:31
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,什么原因,怎么做呢!
喜欢0 评分0
追风浪子
路人甲
路人甲
  • 注册日期2004-06-08
  • 发帖数166
  • QQ
  • 铜币782枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2007-12-20 16:35
<P>把你的ipPoint 用点选择换成用矩形选择,试试</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部