AfterItemDraw on GlobeControl

10-09-2012 05:43 AM
New Contributor
Hi at all,

I'm trying to capture the event 'AfterItemDraw' on 'GlobeControl' object, I implemented the following code:

Private m_EventsAfterDraw3D As ESRI.ArcGIS.GlobeCore.IActiveViewEvents_AfterItemDrawEventHandler
m_EventsAfterDraw3D = New ESRI.ArcGIS.GlobeCore.IActiveViewEvents_AfterItemDrawEventHandler(AddressOf OnAfterItemDraw)
AddHandler CType(m_globe, ESRI.ArcGIS.GlobeCore.IActiveViewEvents_Event).AfterItemDraw, m_EventsAfterDraw3D 

but it does not work, I have to set the VerboseEvents property, object IViewManager, to TRUE as for MapControl object ? 

                Dim pViewManager As IViewManager = Nothing
                pViewManager = ??????                                      <<========= ????????
                pViewManager.VerboseEvents = True

how do I set pViewManager = ??????

thanks at all

0 Kudos
0 Replies