473,326 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Mappoint 2002

I am attempting to draw on a Mappoint 2002 active X
control using GDI by the following method:

1. I create a graphics object:
g = graphics.FromHwnd(axMap.handle)
2. I draw a rectangle on it.
g.FillRectangle(new solidBrush(Color.Navy), 0,0,
AxMap.width, AxMap.height)

The result is that I can see a blue outline around the map
as if it is drawing it behind the map.

Where can I find documentation on how to draw on the map
at specified lat and lon?

Thanks

Billy Jacobs
Jul 19 '05 #1
1 1798
Hi, Billy

What you are trying to do with mappoint control is not supported. I can
offer some things to try, based on some poking around I did. I believe you
are painting on the wrong hwnd. The one you want is one of the children's
children's children etc of the one where you are actually painting. You
can use the spy++ tool to do some detective work, and determine the hwnd of
the actual drawing surface. Once you know the class you should be able to
call FindWindow to get the hwnd of the drawing surface. You could also
enumerate the parents until you get to the hwnd you get from dotnet. You
could then write code using GetWindow to wend your way through the various
children to the drawing surface. I think you would be better off using
the built in functionality if you possibly can.

I hope you found this information useful, and thank you for choosing the
MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
(c) 2003 Microsoft Corporation. All rights reserved.
--------------------
| Content-Class: urn:content-classes:message
| From: "Billy Jacobs" <bi********@csa.com>
| Sender: "Billy Jacobs" <bi********@csa.com>
| Subject: Mappoint 2002
| Date: Mon, 4 Aug 2003 15:03:21 -0700
| Lines: 18
| Message-ID: <03****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNa1DgGB4XGUVePRoSChXVyrdmG5A==
| Newsgroups: microsoft.public.dotnet.general
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:103438
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am attempting to draw on a Mappoint 2002 active X
| control using GDI by the following method:
|
| 1. I create a graphics object:
| g = graphics.FromHwnd(axMap.handle)
| 2. I draw a rectangle on it.
| g.FillRectangle(new solidBrush(Color.Navy), 0,0,
| AxMap.width, AxMap.height)
|
| The result is that I can see a blue outline around the map
| as if it is drawing it behind the map.
|
| Where can I find documentation on how to draw on the map
| at specified lat and lon?
|
| Thanks
|
| Billy Jacobs
|

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: trapeze.jsg | last post by:
Hi. Is there anybody who have tried to use python to access Microsofts MapPoint soap services? I am trying hard but I have run into a big thick wall called md5 digest authentication. The...
2
by: anon | last post by:
Hi, I have just installed the micorsoft's mappoint .net sdk....how to start using the samples.....has anyone successfully gone through the entire cycle of installation to implementation...if yes,...
4
by: deko | last post by:
I have an address form in Access 2003 that contains the usual address information such as AddressLine1, AddressLine2, City, State, etc... I would like to put a button on this form that feeds the...
3
by: tom | last post by:
Hi All, We have an Access XP application in which we utilize automation to control MS MapPoint 2004. It works pretty well, for the most part. Now, we would really like to use the MapPoint...
2
by: mrwoopey | last post by:
Hi, I need to be able to click onto a map and then drill down to a report. For example, could we have a map of the Chicagoland area with clickable areas (zip code) and when a user clicks on an...
1
by: Billy Jacobs | last post by:
I am attempting to draw on a Mappoint 2002 active X control using GDI by the following method: 1. I create a graphics object: g = graphics.FromHwnd(axMap.handle) 2. I draw a rectangle on it....
2
by: Gil | last post by:
I am automating mappoint in access and was wondering what is a better way to have the mappoint map running all the time: 1.call it as a seperate application OR 2. as an activex control within a...
1
by: Gil | last post by:
hello, im automating mappoint through access to get mileage between two address fields. when ever i call the function it makes mappoint the focus, and i have to reclick the access screen to regain...
7
by: Kath | last post by:
Hi, I hope this is the most relevant newsgroup for this post. I have a VB.NET app that uses the MapPoint component, and in my app I use pushpins to display/retrieve GPS locations....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.