Note that you will have to set the SendMouseDown, SendMouseMove, and SendMouseUp properties = True for the OCX to generate mouse events.
Beyond that, what framework are you using in c++? Are you using MFC? Whatever framework you are using to load the OCX should expose the Map events for you to hook them.
And I see now the CDMap class has not any Send… function.
So it can be created without these functions?
In VS 2017 I have a “Cannot find coclass for interface _DMapEvents” error
But in VS 2019 it is created and looks like DMap class
BOOL CDMapEvents::Create(…), CDMapEvents::MouseMove(…) etc.
The map is created by:
mapWinGis.Create(NULL, WS_VISIBLE, mapRect, this, IDC_MAP);
When I try to create CDMapEvents same way its fails.