Offscreen MapPoint Draw?

EvetsMostel
04-09-2007, 01:40 PM
Has anyone devised a way to get mappoint to draw to another buffer other than the screen when using MP as an ActiveX control? The reason I need to do this is because I would like to have another window on top of it, but mappoint doesn't behave very well, and draws over everything without clipping.

EvetsMostel

Wilfried
04-10-2007, 02:00 PM
Hi,

I'm not sure I understeand your question but you can have a hidden activeX component then it will draw not to the screen.

EvetsMostel
04-11-2007, 09:05 AM
What I mean is this:
I am driving mappoint to zoom and pan where I want via an ActiveX interface and MFC (C++). This works fine. However, I want Mappoint to draw to an offscreen buffer instead of the screen, and then I want to copy that view to the screen with some changes. However, I've tried copying from the many windows that mappoint has (the DC), but I don't get anything if mappoint is not visible. I've tried using CopyMap and the clipboard, but that doesn't give me the current view, it just gives me a default view (in this case of the US). It also doesn't include pushpins I have added.

Wilfried
04-13-2007, 02:16 AM
Hi,

You have to select an area (eventually the whole area of the view), the use the SelectedArea.Copy method.

Mouad
04-25-2007, 04:34 AM
They are Sometime problems with the CopyMap Method?

I have a method that uses the SelectedArea.Copy method if Selection is not nothing and else CopyMap method like in the follwoing Code-Snippet:

If Not m_oMapPoint.ActiveMap.Selection Is Nothing Then
m_oMapPoint.ActiveMap.SelectedArea.Copy
Else
m_oMapPoint.ActiveMap.CopyMap
End If

In a a costumer-system (xp SP2) they seems to have sometimes problems with the clipboard after CopyMap.

Because then the experssion "m_oLEAD.Paste(PASTE_ISREADY) <> 0 " is false.

Did somebody had the same problems?

Wilfried
04-26-2007, 01:23 PM
Hi,

What is: m_oLEAD.Paste(PASTE_ISREADY) ?

Mouad
04-27-2007, 07:49 AM
That s the VB6 Lead Control.

Wilfried
04-28-2007, 02:22 AM
Hi,

I have no idea what a lead control is, but what problem exacly do you have with the clipboard ? Also you say 'sometime', so under which circumstances ?

Mouad
04-30-2007, 07:01 AM
They are no really special circunstances, the program is running in thousands of pcs, XP, win 2k3, win 2k. They are problems only by one customer, maybe a wrong installation of Mappoint?

Wilfried
04-30-2007, 12:35 PM
Hi,

But what exacly is the problem with the clipboard ?
BTW it is not a Dell machine with Embassy Trust Suite installed ? If so uninstall the thing, it is very buggy.

Mouad
04-30-2007, 03:33 PM
The problem is that sometime specially after zooming the map 2 or 3 onces the Lead(Clipboard object) is not ready to paste, i will try to uninstall and install new mappoint. I want only to make sure if they are eventual problems with the lead-object(clipboard).

 
Web mp2kmag.com
mapforums.com