Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Offscreen MapPoint Draw?

This is a discussion on Offscreen MapPoint Draw? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Has anyone devised a way to get mappoint to draw to another buffer other than the screen when using MP ...

  1. #1
    EvetsMostel is offline Member Yellow Belt
    Join Date
    Oct 2005
    Location
    Eugene, OR
    Posts
    30

    Smile Offscreen MapPoint Draw?

    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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Offscreen MapPoint Draw?

    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.

  3. #3
    EvetsMostel is offline Member Yellow Belt
    Join Date
    Oct 2005
    Location
    Eugene, OR
    Posts
    30

    Re: Offscreen MapPoint Draw?

    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.

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Offscreen MapPoint Draw?

    Hi,

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

  5. #5
    Mouad is offline Junior Member White Belt
    Join Date
    Apr 2007
    Posts
    5

    Re: Offscreen MapPoint Draw?

    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?

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Offscreen MapPoint Draw?

    Hi,

    What is: m_oLEAD.Paste(PASTE_ISREADY) ?

  7. #7
    Mouad is offline Junior Member White Belt
    Join Date
    Apr 2007
    Posts
    5

    Re: Offscreen MapPoint Draw?

    That s the VB6 Lead Control.

  8. #8
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Offscreen MapPoint Draw?

    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 ?

  9. #9
    Mouad is offline Junior Member White Belt
    Join Date
    Apr 2007
    Posts
    5

    Re: Offscreen MapPoint Draw?

    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?

  10. #10
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Offscreen MapPoint Draw?

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Draw multiple routes with MapPoint 2004?
    By MD2000 in forum MapPoint Desktop Discussion
    Replies: 9
    Last Post: 06-19-2008, 04:04 AM
  2. to draw my own map
    By rushang in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-23-2005, 11:55 PM
  3. Tool to draw TomTom/NMEA GPS log in MapPoint
    By Anonymous in forum News and Announcements
    Replies: 0
    Last Post: 05-20-2004, 09:49 AM
  4. draw multiple routes
    By spirido in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-01-2004, 08:11 AM
  5. Hi I have a problem. When i draw a line and the....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-15-2002, 11:06 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96