Community of VE/MapPoint Users and Developers
This is a discussion on Deleting all CShape in CShapes within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I have a member variable CShapes m_carPath for which I do AddLine( oldlocation, newlocation ) each time I update ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Deleting all CShape in CShapes Code: VARIANT idx;
VariantInit( &idx );
V_VT(&idx) = VT_I4;
for( long i = 1; i <= m_carPath.GetCount(); i++ ) {
V_I4(&idx) = i;
CShape shape = m_carPath.GetItem( &idx );
shape.Delete();
}
Any idea why? Please help. Thanks! -Stu |
| |||
|
Hi, I dont understeand the question very whell but is it not more easy to just move the pushpin to the new position and eventually change balloon information ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
Ok, my question was not about the pushpin. It was about a line that I am drawing to trail the pushpin. But your answer posts another question for me. So, I'm going to try and make it clear with two questions.
If this is not clear let me know. Thanks! Stu |
| |||
|
Hi, Now I understeand This example try to find a pushpin on the map, create a new if not found, and move the existing with the same name if found: Code: private Pushpin MovePP(string name, double lat, double lon)
{
Location Loc = MP.ActiveMap.GetLocation(lat, lon, 1);
Pushpin PP = MP.ActiveMap.FindPushpin(name);
if (PP == null)
PP = MP.ActiveMap.AddPushpin(Loc, name);
PP.Location = Loc;
PP.GoTo();
return PP;
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| cshape, cshapes, deleting |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting pushpins in bulk | brianmcg | MapPoint 2006/2009 Discussion | 1 | 06-22-2006 01:08 PM |
| Selecting and deleting the push pin | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-10-2005 07:01 AM |
| deleting city names | Anonymous | MapPoint 2006/2009 Discussion | 0 | 11-04-2004 06:53 PM |
| New map (Deleting) | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-21-2004 03:21 AM |
| disabling deleting pushpin | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-28-2004 08:14 AM |
Flights to Sardinia
Sardinia has exquisite seafood as well as fantastic weather, superb seas and stunning scenery. Holiday Hypermarket can help you to book cheap flights to Sardinia with ease.
Italy Holidays
Find great Italy Holidays with Travel Counsellors. A personal Travel Counsellor can help you plan the perfect holiday to Italy.
Holidays Italy
Book your holidays in Italy. Italy has a great climate and the beaches to go with it. Book a great deal for great value online at dealchecker.co.uk.
Holidays in Cuba
Holidays in Cuba are an eclectic mix of golden beaches, rich, colourful scenery and a proud cultural heritage. Book a break in Cuba now!
Cheap Spain Holidays
Stay well informed when you are searching for cheap holidays online. For useful advice on when to book cheap Spain holidays make sure you look on ulookubook.com
Cheap Holidays
Looking for holidays that are cheap, but still what you want? Visit Travel.co.uk.
Florida Holidays
Take a sunny holiday break! Find info on Florida holidays at On The Beach!