MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Access the GPS Pane via C#

This is a discussion on Access the GPS Pane via C# within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; One of the cool feature of MP 2006 was the improve GPS tracking and the all new Voice Directions. That ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-03-2006
Junior Member
White Belt
 
Join Date: Oct 2006
Location: austin, tx
Posts: 3
Access the GPS Pane via C#

One of the cool feature of MP 2006 was the improve GPS tracking and the all new Voice Directions. That was a GOOD improvement. The BAD is the API does not provide a new enumeration for GeoPaneState So after some reading and surfing I found some VB6 code from Sergiy Pavlov I used SPY++ to write a small class that toggle the GPS Pane on and off. From this sample code you should be able to access addition MP features that are not included in the API. To find other features, open MapPoint 2006 and then start SPY++. Use the Find Window tool and then start loging on that window. However be sure to limit the logging to only the WM_COMMAND unless you are interested in other messages.

After I open MP 2006 and type [ctrl]A. The GPS panel appear and SPY++ logs

00290B60 S WM_COMMAND wNotifyCode:1(sent from accel) wID:35037

Now I have the code to submit to toggle the GPS pane

publicvoid ToggleGPSPane()
{
if (this.myMpHandle != 0)
{
SendMessage(
this.myMpHandle, WM_COMMAND, SHOW_GPS_PANE, 0);
}
}


where
privateconstint WM_COMMAND = 0x0111;

privateconstint SHOW_GPS_PANE = 35037;

The attach code should compile and be a starter for additional work.

Enjoy
Scott
Attached Files
File Type: zip MapPointWin32API.zip (1.7 KB, 67 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-13-2008
Junior Member
Yellow Belt
 
Join Date: Feb 2006
Posts: 19
Send a message via Yahoo to renatoa
Re: Access the GPS Pane via C#

I succeeded to make this work, but everything in the GPS pane is dimmed, including "Start GPS tracking" checkbox...
Pressing "Configure GPS..." and nothing happens.
Any idea ?

Renato
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-13-2008
Junior Member
White Belt
 
Join Date: Oct 2006
Location: austin, tx
Posts: 3
Re: Access the GPS Pane via C#

Unfortunately that is the road block I hit after I posted the original message. I worked on this for quite awhile with no success. I am thinking when the GPS pane initializes it check whether to see if the parent is the MapPoint exe or the 'control' and behaves differently (disabled) if the 'control' is the parent.

If you are able to get past this please post your solution.

Scott
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
access, gps, pane


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/access-gps-pane-via-c-5247.html

Posted By For Type Date
GPS Mobile Application This thread Refback 1 Week Ago 03:57 AM
Start Mappoint GPS Tracking in C# - MP3Car.com This thread Refback 04-28-2008 04:26 PM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
hide Legend and overview Pane Anonymous MapPoint 2006/2009 Discussion 1 03-11-2004 09:10 AM
Show calculate pane Anonymous MapPoint 2006/2009 Discussion 0 03-04-2004 06:02 AM
objRoute.Calculate method displays directions pane.... Anonymous MapPoint 2006/2009 Discussion 1 07-26-2002 01:52 PM


All times are GMT -5. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Bodrum Holiday
Check out the picturesque towns on your Bodrum holiday... Book through UlookUbook!

Travel agents...
Find the best travel agents online by reading the reviews of other customers.



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