POST
|
ArcGIS Engine 10.1/C++/Windows I have a MapControl embedded in a tabbed splitter pane. If I hover over an feature on the map, the appropriate maptip appears and gradually fades to a "ghost" image. If I right-click on the feature without moving the mouse, it opens a custom context menu (using MFC's CMenu::TrackPopupMenu). From the context menu, I select an option which opens a new tab page. The new tab page hides the underlying map but the "ghost" of the maptip remains visible. How do I get rid of the maptip? Among the things I've tried: 1. Calling ShowMapTips(VARIANT_FALSE) when switching to the new tab page. 2. Sending a bogus WM_MOUSEMOVE and WM_MOUSELEAVE to the MapControl in an attempt to dismiss the maptip. 3. Calling MFC's CancelToolTips. 4. Disabling the application window and re-enabling. 5. Removing focus from the MapControl. 6. Changing the active window status. 7. Test for a cancel mouse capture.
... View more
01-09-2013
12:12 PM
|
0
|
0
|
336
|
POST
|
I've written an ArcGIS Engine 9.3.1 app. I've included an MXD file with relative paths to a file geodatabase. I'd like the user to have the liberty to install the file geodatabase anywhere he/she pleases (even on a remote server). I record the path to the file geodatabase during installation to the system registry. Since the relative paths in the MXD file may no longer be valid, I've added code to my program which attempts to repair the embedded relative paths within the MXD based on the registry entry pointing to the actual location of the file geodatabase. Here's the start of my code: void CMyMapClass::RepairBrokenDocumentPaths(IMapDocument* ipMapDocument) { [INDENT] long nCount; ipMapDocument->get_MapCount(&nCount); for (long i = 0; i < nCount; i++) { [INDENT] IMapPtr ipMap; ipMapDocument->get_Map(i, &ipMap); RepairBrokenMapPaths(ipMap);[/INDENT] }[/INDENT]} When I attempt to get Map 0, the program bombs. When I attempt to open the same MXD in ArcMap, I get the error message: Opening the selected ArcMap document failed. An unexpected error occurred while loading the map document. Last Component: {7EE9C496-D123-11D0-8383-080009B996CC} It may reference an extension that is not currently installed or one that failed to load. The following extensions were present when the map was saved but are currently missing on your system: -Toolbars -HawthsTools3 -ESRI Animation -Georeferencing -Survey Analyst -Business Analyst -Military Analyst -TabletPC Support -Tracking Environment -Data Interoperability -Overposter Validation -ESRI Metadata Extension -ESRI Publisher Extension -ESRI Route Hatching Extension If I move the file geodatabase back to its original location relative to the MXD file, the document opens fine. Is there no way to programmatically open a MXD and repair its internal links?
... View more
05-28-2010
07:26 AM
|
0
|
0
|
2743
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|