Anonymous
06-23-2003, 04:14 AM
I'm working with Mappoint Europe 2002 and Visual C++. I want to do double click on a pushpin, which I have previosly created, and showa new dialog with the information of the pushpin (lat/lon,address...).
Thanks you.
Anonymous
02-27-2004, 11:55 AM
Look at pushpin.parent. Not sure, but I think that's the right direction to go. (try 'fields')
Not an expert myself, but perhaps it might help
Good luck
Nick
Winwaed
02-27-2004, 01:16 PM
You need to trap the "object selected" event (forget what it is called now).
Create an event handler and connect it.
iirc, you have to set your project to be a COM Server, so you can pass your "event receiver" object and methods to MapPoint.
Your event handler should then check the newly selected object (passed as a parameter) , to check that it is a Pushpin and which pushpin it is (via its id).
Hope this helps - it should point you in the right direction. It is a while since I've played around with the event handling stuff!
Richard
Anonymous
02-28-2004, 02:35 PM
hi ..
i am a beginner in mappoint automation, it seems that mappoint is mainly used with visual basic ... what about visual c++ ? all what i need to do is to add pushpins on the map by giving long and lat
if someone can give me a piece of advice, i will appreciate, thanks
Winwaed
02-28-2004, 06:26 PM
Alain - see my pending article I wrote for MP2KMag - I think Eric said it should be published next week.
This does some simple MapPoint manipulation (pushpin and route creation) in C++ but without relying to MFC.
Richard