PlugIns? (#2) - OnDrag? and OnDragEx? with ILayerEditor3? (#72) - Message List

OnDrag? and OnDragEx? with ILayerEditor3?

ILayerEditor3 has extended versions of several LayerEditor? callbacks including Selected() and OnDrag?(). The extended versions do not have the same parameters as their predecessors (e.g., they don't pass handles to the screen object), so they're not drop-in replacements.

Because of that, I'd like to use the old ILayerEditor version of OnDrag?() even though I implement the ILayerEditor3 interface.

It appears that returning "FAILURE" on the extended versions of SelectedEx?() and TestSelectedEx?() causes the non-extended versions of those methods to be invoked. However, I've been unable to get OnDrag?() to be invoked instead of OnDragEx?() when I implement ILayerEditor3.

Is it possible to use the old OnDrag?() callback with an ILayerEditor3 implementation?

Tree View Flat View (newer first) Flat View (older first)
  • Message #213

    Yes, it is possible. Return anything other than S_OK (e.g., E_FAIL) from OnDragEx? to have OnDrag? called.

Tree View Flat View (newer first) Flat View (older first)

Subscriptions