Using MapPoint 2004 with BCB6


2005-08-12 08:39:29 PM
cppbuilder28
Hello,
I am using MP inside TOleContainer. Everythig works fine but I'd like to
add a control panel (MapPoint panel with zooming,route planning etc.)
Can anyone tell me how to do it.
The way I do it is shown below:
OleContainer1 = new TOleContainer(this);
// I put OleContainter on the Panel (TCustomPanel)
OleContainer1->Parent = this;
OleContainer1->CreateObject("MapPoint.Map",false);
OleContainer1->OleObjectInterface->QueryInterface(IID__Map,(void**)&Map1);
OleContainer1->Align = alClient;
OleContainer1->DoVerb(ovShow);
is there any possiblity of switching MapPoint.Map to MapPoint.App or
something like that? - I just need a control panel without a legent and
stuff.
Thanks in advance
Tomek