473,396 Members | 2,061 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,396 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 1801
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.