HwndSource HwndSource HwndSource HwndSource Constructors

Definition

Overloads

HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters)

Initializes a new instance of the HwndSource class by using a structure that contains the initial settings.

HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, name, and parent window.

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, width, height, name, and parent window.

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, width, height, name, and parent window, and by specifying whether the window is autosized.

Remarks

Important

This method is not available in the Internet security zone.

HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters) HwndSource(HwndSourceParameters)

Initializes a new instance of the HwndSource class by using a structure that contains the initial settings.

public:
 HwndSource(System::Windows::Interop::HwndSourceParameters parameters);
[System.Security.SecurityCritical]
public HwndSource (System.Windows.Interop.HwndSourceParameters parameters);
new System.Windows.Interop.HwndSource : System.Windows.Interop.HwndSourceParameters -> System.Windows.Interop.HwndSource
Public Sub New (parameters As HwndSourceParameters)

Parameters

parameters
HwndSourceParameters HwndSourceParameters HwndSourceParameters HwndSourceParameters

A structure that contains the parameters that are required to create the window.

Remarks

Important

This method is not available in the Internet security zone.

This constructor signature might be more convenient in certain situations, because the default structure contains some appropriate initial default values.

Important

If you use this signature, do not use the default HwndSourceParameters constructor to construct the HwndSourceParameters structure for the parameters value. You must use the HwndSourceParameters constructor that enables you to specify an initial window name. If you use the default HwndSourceParameters constructor and create an HwndSource with it, that HwndSource does not display because an initial window name is a construction requirement for the represented HWND.

Security

UIPermission
to create instances of this class. Associated enumeration: AllWindows

HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, name, and parent window.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, System::String ^ name, IntPtr parent);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, string name, IntPtr parent);
new System.Windows.Interop.HwndSource : int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, name As String, parent As IntPtr)

Parameters

classStyle
Int32 Int32 Int32 Int32

The Win32 class styles for the window.

style
Int32 Int32 Int32 Int32

The Win32 styles for the window.

exStyle
Int32 Int32 Int32 Int32

The extended Win32 styles for the window.

x
Int32 Int32 Int32 Int32

The position of the window's left edge.

y
Int32 Int32 Int32 Int32

The position of the window's upper edge.

name
String String String String

The name of the window.

parent
IntPtr IntPtr IntPtr IntPtr

The handle of the window's parent window.

Remarks

Important

This method is not available in the Internet security zone.

Security

UIPermission
to create instances of this class. Associated enumeration: AllWindows

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, width, height, name, and parent window.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, int width, int height, System::String ^ name, IntPtr parent);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent);
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, parent As IntPtr)

Parameters

classStyle
Int32 Int32 Int32 Int32

The Win32 class styles for the window.

style
Int32 Int32 Int32 Int32

The Win32 styles for the window.

exStyle
Int32 Int32 Int32 Int32

The extended Win32 styles for the window.

x
Int32 Int32 Int32 Int32

The position of the window's left edge.

y
Int32 Int32 Int32 Int32

The position of the window's upper edge.

width
Int32 Int32 Int32 Int32

The width of the window.

height
Int32 Int32 Int32 Int32

The height of the window.

name
String String String String

The name of the window.

parent
IntPtr IntPtr IntPtr IntPtr

The handle of the window's parent window.

Remarks

Important

This method is not available in the Internet security zone.

Security

UIPermission
to create instances of this class. Associated enumeration: AllWindows

HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean)

Initializes a new instance of the HwndSource class with a specified class style, style, extended style, x-y position, width, height, name, and parent window, and by specifying whether the window is autosized.

public:
 HwndSource(int classStyle, int style, int exStyle, int x, int y, int width, int height, System::String ^ name, IntPtr parent, bool adjustSizingForNonClientArea);
[System.Security.SecurityCritical]
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent, bool adjustSizingForNonClientArea);
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint * bool -> System.Windows.Interop.HwndSource
Public Sub New (classStyle As Integer, style As Integer, exStyle As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, parent As IntPtr, adjustSizingForNonClientArea As Boolean)

Parameters

classStyle
Int32 Int32 Int32 Int32

The Win32 class styles for the window.

style
Int32 Int32 Int32 Int32

The Win32 styles for the window.

exStyle
Int32 Int32 Int32 Int32

The extended Win32 styles for the window.

x
Int32 Int32 Int32 Int32

The position of the window's left edge.

y
Int32 Int32 Int32 Int32

The position of the window's upper edge.

width
Int32 Int32 Int32 Int32

The width of the window.

height
Int32 Int32 Int32 Int32

The height of the window.

name
String String String String

The name of the window.

parent
IntPtr IntPtr IntPtr IntPtr

The handle of the window's parent window.

adjustSizingForNonClientArea
Boolean Boolean Boolean Boolean

true to have the layout manager include the non-client area for sizing; otherwise, false.

Remarks

Important

This method is not available in the Internet security zone.

Security

UIPermission
to create instances of this class. Associated enumeration: AllWindows

Applies to