Toolbars Disappear In MapPoint Control

Jonny1234
12-19-2006, 10:55 PM
Hi,

Please can you tell me how to force the toolbars to redraw in the MapPoint control. Sometimes they disappear.

If there is no MapPoint control method for this, perhaps there is a Win32 API call I could use to redraw the toolbars?

I have tried using the SetWindowPos method of redrawing windows, but it doesn't affect the toolbars.

Thanks for your help.

Regards,
Jonny

Jonny1234
12-19-2006, 11:15 PM
Figured it out. Set their Visible property to False and then back to True again. Forces them to redraw.

Regards,
Jonny

Jonny1234
12-21-2006, 02:12 PM
This method works but the map flickers quite a bit. If anyone knows of a better way, please could you let me know.

Thanks.

Jonny

Wilfried
12-22-2006, 06:31 AM
Hi,

When do tey dissapear ? Until now I never seen this reported, so maybe you can try to find out when it happens ? Can be due to some anomaly in your application, dont know.

 
Web mp2kmag.com
mapforums.com