HwndSourceParameters Structure

HwndSourceParameters Structure

 

Contains the parameters that are used to create an HwndSource object using the HwndSource constructor.

Namespace:   System.Windows.Interop
Assembly:  PresentationCore (in PresentationCore.dll)

public struct HwndSourceParameters

NameDescription
System_CAPS_pubmethodHwndSourceParameters(String)

Initializes a new instance of the HwndSourceParameters class with a specified window name.

System_CAPS_pubmethodHwndSourceParameters(String, Int32, Int32)

Initializes a new instance of the HwndSourceParameters class with a specified window name and initial size.

NameDescription
System_CAPS_pubpropertyAcquireHwndFocusInMenuMode

Gets or sets the value that determines whether to acquire Win32 focus for the WPF containing window when an HwndSource is created.

System_CAPS_pubpropertyAdjustSizingForNonClientArea

Gets or sets a value that indicates whether to include the nonclient area for sizing.

System_CAPS_pubpropertyExtendedWindowStyle

Gets or sets the extended Microsoft Windows styles for the window.

System_CAPS_pubpropertyHasAssignedSize

Gets a value that indicates whether a size was assigned.

System_CAPS_pubpropertyHeight

Gets or sets a value that indicates the height of the window.

System_CAPS_pubpropertyHwndSourceHook

Gets or sets the message hook for the window.

System_CAPS_pubpropertyParentWindow

Gets or sets the window handle (HWND) of the parent for the created window.

System_CAPS_pubpropertyPositionX

Gets or sets the left-edge position of the window.

System_CAPS_pubpropertyPositionY

Gets or sets the upper-edge position of the window.

System_CAPS_pubpropertyRestoreFocusMode

Gets or sets how WPF handles restoring focus to the window.

System_CAPS_pubpropertyTreatAncestorsAsNonClientArea

Gets or sets a value that indicates whether the parent windows of the HwndSource should be considered the non-client area of the window during layout passes.

System_CAPS_pubpropertyTreatAsInputRoot

Gets or sets a value that indicates whether the HwndSource should receive window messages raised by the message pump via the ComponentDispatcher.

System_CAPS_pubpropertyUsesPerPixelOpacity

Gets a value that declares whether the per-pixel opacity of the source window content is respected.

System_CAPS_pubpropertyUsesPerPixelTransparency

Gets a value that declares whether the per-pixel transparency of the source window content is respected.

System_CAPS_pubpropertyWidth

Gets or sets a value that indicates the width of the window.

System_CAPS_pubpropertyWindowClassStyle

Gets or sets the Microsoft Windows class style for the window.

System_CAPS_pubpropertyWindowName

Gets or sets the name of the window.

System_CAPS_pubpropertyWindowStyle

Gets or sets the style for the window.

NameDescription
System_CAPS_pubmethodEquals(HwndSourceParameters)

Determines whether this structure is equal to a specified HwndSourceParameters structure.

System_CAPS_pubmethodEquals(Object)

Determines whether this structure is equal to a specified object. (Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this HwndSourceParameters instance. (Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSetPosition(Int32, Int32)

Sets the values that are used for the screen position of the window for the HwndSource.

System_CAPS_pubmethodSetSize(Int32, Int32)

Sets the values that are used for the window size of the HwndSource.

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(HwndSourceParameters, HwndSourceParameters)

Determines whether an HwndSourceParameters structure is equal to another HwndSourceParameters structure.

System_CAPS_puboperatorSystem_CAPS_staticInequality(HwndSourceParameters, HwndSourceParameters)

Determines whether an HwndSourceParameters structure is not equal to another HwndSourceParameters structure.

This structure is used only in the HwndSource object constructor call.

The properties whose values are established by this structure are not directly exposed on HwndSource instances when an HwndSource is constructed. However, the values of the HwndSourceParameters structure typically affect general UI properties such as "Height" and "Width" that might exist in specific hosted objects and their APIs.

System_CAPS_importantImportant

Do not construct instances of this structure using the default (parameterless) constructor. An HwndSourceParameters instance that is created by the default constructor results in HwndSourceParameters that cannot be assigned a WindowName (even though the WindowName property appears to be settable). If such an instance is applied as the parameters for an HwndSource constructor, the resulting HwndSourcecannot display a window.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft