laptop and a wrench

漏洞

Developer Samples: IContentsView.cs and IContentsView.vb leave a reminant over the Table of Contents (TOC) in ArcMap.

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM002526
已提交May 15, 2006
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.1
编程语言VB.Net
修正版本9.3
状态Fixed

解决办法

The problem can be fixed by adding Win32 ShowWindow function to IContentsView class (both for VB.NET and C#). Step 1. Add the following Win32 call IContentsView class: private const int SW_SHOW = 9; private const int SW_HIDE = 0; //Win32 API Calls [DllImport("User32.dll")] public static extern int ShowWindow( int hwnd, int nCmd);Step 2. In Activate() of the ContentsView, show the TOCControl as shown below: In public void Activate(int parentHWnd, IMxDocument Document) { ShowWindow(m_tocControl.hWnd, SW_SHOW); }Step 3. In Deactivate() of ContentsView hide the TOCControl as shown below: In public void Deactivate() { ShowWindow(m_tocControl.hWnd, SW_HIDE); }Complie the project and sample should work properly.

重现步骤

漏洞 ID: NIM002526

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项