Called when this dockable window is created .
Namespace:
ESRI.ArcGIS.Desktop.AddInsAssembly: ESRI.ArcGIS.Desktop.Addins (in ESRI.ArcGIS.Desktop.Addins.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C# |
---|
protected virtual IntPtr OnCreateChild() |
Visual Basic (Declaration) |
---|
Protected Overridable Function OnCreateChild As IntPtr |
Visual C++ |
---|
protected: virtual IntPtr OnCreateChild() |
Return Value
The window handle.Remarks
Create a user control or windows form and return the handle that the control is bound to.
Examples
CopyC#
public class DockWin : ESRI.ArcGIS.Desktop.AddIns.DockableWindow { private DockableWindow1 m_windowUI; public DockWin() { } protected override IntPtr OnCreateChild() { m_windowUI = new DockableWindow1(); return m_windowUI.Handle; } } public partial class DockableWindow1 : UserControl { public DockableWindow1() { InitializeComponent(); } }
CopyVB.NET
Public Class DockWin Inherits ESRI.ArcGIS.Desktop.AddIns.DockableWindow Private m_windowUI As DockableWindow1 Public Sub New() End Sub Protected Overloads Overrides Function OnCreateChild() As IntPtr m_windowUI = New DockableWindow1() Return m_windowUI.Handle End Function End Class Partial Public Class DockableWindow1 Inherits UserControl Public Sub New() InitializeComponent() End Sub End Class