MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Always On Top??

This is a discussion on Always On Top?? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using VB6. In my project I have a main form that calls a map form from a menu ...


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

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



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 10
Send a message via MSN to Milo Send a message via Yahoo to Milo
Always On Top??

I am using VB6. In my project I have a main form that calls a map form from a menu button. When the map form shows it appears on top of all other forms as you would expect...however, it seems to have the "always on top" functionality! In the form_load of the map form I have this:

Private Sub Form_Load()
mapTrack.NewMap geoMapEurope
bLiveTrack = False
gbMapShow = True
End Sub

However, when I do this (comment out the newmap line):

Private Sub Form_Load()
'mapTrack.NewMap geoMapEurope
bLiveTrack = False
gbMapShow = True
End Sub

The project seems ok (no "on top").

Anyone any ideas?

Regards,
Milo
__________________
=========
Milo
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 11-15-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 10
Send a message via MSN to Milo Send a message via Yahoo to Milo
I have solved this by putting
SetWindowPos Me.hwnd, HWND_NOTTOPMOST, 0, 0, 0, 0, _
SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE

at the end of form_load. I have done a search for SetWindowPos throughout my whole project and there is nothing that sets the map form to the front?!!? I would still be interested to see if anyone has any comments on this though.

Regards,
Milo
__________________
=========
Milo
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
top


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


All times are GMT -5. The time now is 08:10 AM.


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

Gatwick Flights
Find out key information about Gatwick airport on Holiday Hypermarket. We can help book great value flights to and from Gatwick as well.

Personal Travel Advisor
Let a personal Travel Advisor help with your travel plans. Travel Counsellors were voted UK's Best Travel Agent at the Guardian Unlimited travel awards

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Holidays to Bahamas
Choose from a number of extraordinary holidays to the Bahamas at The Holiday Place. See pictures of these beautiful islands online.

Cheap Turkey Holidays
The best time of year to sneak in cheap Turkey holidays is during the off-peak season. Check out the great deals available during April, May or October. For other tips on how to bag a great value holiday simply check online at ulookubook.com

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 to Gran Canaria
Book a flight to the Canary Islands! View information on cheap holidays to Gran Canaria online 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 48 49 50 51 52