[This is preliminary documentation and is subject to change.]

Gets or sets handle of current window's parent

Namespace: Tools.WindowsT.NativeT
Assembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[LCategoryAttribute(typeof(ControlsWin), "Relationship_c", "Relationship", 
	LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)]
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public IntPtr ParentHandle { get; set; }
Visual Basic
<LCategoryAttribute(GetType(ControlsWin), "Relationship_c", "Relationship",  _
	LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)> _
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public Property ParentHandle As IntPtr
	Get
	Set
Visual C++
[LCategoryAttribute(typeof(ControlsWin), L"Relationship_c", L"Relationship", 
	LCategoryAttribute..::..enmLookUpOrder::ResourceFirst)]
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
public:
property IntPtr ParentHandle {
	IntPtr get ();
	void set (IntPtr value);
}
F#
[<LCategoryAttribute(typeof(ControlsWin), "Relationship_c", "Relationship", 
    LCategoryAttribute..::..enmLookUpOrder.ResourceFirst)>]
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
member ParentHandle : IntPtr with get, set
JScript
function get ParentHandle () : IntPtr
function set ParentHandle (value : IntPtr)

Field Value

Handle to window to parent current window into. Set to 0 if window should be parented into desktop.

Return Value

Handle of current window's parent. Zero if current window has no parent.

Remarks

It's recomended to use Parent instead. Non-top-level windows (such as button) cannot be unparented. Setting zero for shuch window will cause window to be parented into desktop - not by this implementation but by the OS.

Exceptions

ExceptionCondition
Tools.API..::..Win32APIExceptionError when setting parent. It may be caused by invalid Handle or invalid ParentHandle being set

See Also