How I can wire this event to my method?
I have an ATL class and I need to know when a layer added to map object so that I can update my list of layers in this class.My class implements IExtension and I've put this code in Startup method of this interface:
//Some code to obtain a reference to Map object__hook(&IActiveViewEvents::ItemReordered,pMap/pointer to map/,&MyClass::MyEventHandler);
and in Shutdown method of IExtension I unhook it,but I receive compile error says the source and handler method not compatible while both signatures,arguments and names are exactly same.
Is it true a all this method?any simpler method for this wiring?or any reference on net?
أكثر...
I have an ATL class and I need to know when a layer added to map object so that I can update my list of layers in this class.My class implements IExtension and I've put this code in Startup method of this interface:
//Some code to obtain a reference to Map object__hook(&IActiveViewEvents::ItemReordered,pMap/pointer to map/,&MyClass::MyEventHandler);
and in Shutdown method of IExtension I unhook it,but I receive compile error says the source and handler method not compatible while both signatures,arguments and names are exactly same.
Is it true a all this method?any simpler method for this wiring?or any reference on net?
أكثر...