0
我啓用了地圖以允許動態對象arcobjects無法繪製動態繪製屏幕對象
然後,我從我連線的事件中獲取IDynamicDisplay。
void dynamicMapEvents_AfterDynamicDraw(esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay)
{
if (DynamicMapDrawPhase != esriDynamicMapDrawPhase.esriDMDPDynamicLayers) return;
IDynamicDrawScreen m_dynamicDrawScreen = dynamicDisplay as IDynamicDrawScreen;
m_dynamicDrawScreen.DrawScreenText(myPoint, "Test");
}
「測試」應繪製在屏幕上,但不是。我感覺我錯過了一行代碼somwhere。