|
阅读:1718回复:1
[求助]关于IGraphicsContainer::FindFrame方法
<P>我用以下代码得到的FrameElement总是null</P>
<P><BR> IGraphicsContainer pContainer = axMapControl1.ActiveView as IGraphicsContainer;<BR> IFrameElement pElement = pContainer.FindFrame(axMapControl1.ActiveView.FocusMap);</P> <P>麻烦帮我看下吧,谢谢</P> |
|
|
1楼#
发布于:2008-07-31 17:29
<P>伙计,你看看我的做法吧?</P>
<P> IGraphicsContainerPtr ipGContainer = m_wndMapCtrl.GetMap();<BR> <BR> IElementPtr ipElement;<BR> while (SUCCEEDED(ipGContainer->Next(;ipElement)) ;; NULL != ipElement) {<BR> <BR> }</P> |
|
|