The class that you are probably looking for is MxDocument:http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/000v/000v000000nn000000.htmSteps:Get IApplicationFrom IApplication call get_Document to get IDocumentCall AtlAdvise to subscribe to the document eventsIf the above is not sufficient information then I'd suggest to install and dig through the C++ samples associated with the ArcObjects SDK.In general, programming in C# would be easier but your post indicated that you wanted to use C++.Best of luck!
The question is how to Call AtlAdvise to subscribe to the document events. For IActiveviewEvents, we can use CLSID_ActiveViewEventsListener, but for IDocumentEvents, what is the Listener?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.