MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 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, 39 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
White Belt
 
Join Date: Feb 2006
Posts: 10
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


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

Posted By For Type Date
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 11:55 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Prague Flights
Aside from a good nightlife Prague has magnificent architecture from its industrial past. Book Prague flights for great value at Holiday Hypermarket.

Flights to Turkey
Find and book flights to Turkey. Travel Counsellors can help with travel to Turkey including flights and accommodation.

Holiday in Portugal
A holiday in Portugal is low cost but great value when you book with us online. Transportation and accommodation are excellent and very reasonable too.

Dominican Republic Holidays
Dominican Republic holidays have something to offer for everyone. From water sports, to sun bathing and more, enjoy a holiday there!

Cheap Holidays
Hunting for cheap holidays? Well save time by booking online with ulookubook.com and you can even check out our top tips to help you hunt down a bargain holiday.

Comparison Holidays
Travel.co.uk is a travel comparison service which makes it easy for you to find and plan the best holidays.

Cheap Holidays in Lanzarote
Now's the time to get up and go visit the Canary Islands! View cheap holidays in Lanzarote only at On The Beach.


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