HwndSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HwndSource class.
Overloads
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) |
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) |
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) |
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)
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);
public HwndSource (System.Windows.Interop.HwndSourceParameters parameters);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : System.Windows.Interop.HwndSourceParameters -> System.Windows.Interop.HwndSource
new System.Windows.Interop.HwndSource : System.Windows.Interop.HwndSourceParameters -> System.Windows.Interop.HwndSource
Public Sub New (parameters As HwndSourceParameters)
Parameters
- parameters
- HwndSourceParameters
A structure that contains the parameters that are required to create the window.
- Attributes
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.
Applies to
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);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, string name, IntPtr parent);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
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
The Win32 class styles for the window.
- style
- Int32
The Win32 styles for the window.
- exStyle
- Int32
The extended Win32 styles for the window.
- x
- Int32
The position of the window's left edge.
- y
- Int32
The position of the window's upper edge.
- name
- String
The name of the window.
- parent
-
IntPtr
nativeint
The handle of the window's parent window.
- Attributes
Remarks
Important
This method is not available in the Internet security zone.
Applies to
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);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint -> System.Windows.Interop.HwndSource
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
The Win32 class styles for the window.
- style
- Int32
The Win32 styles for the window.
- exStyle
- Int32
The extended Win32 styles for the window.
- x
- Int32
The position of the window's left edge.
- y
- Int32
The position of the window's upper edge.
- width
- Int32
The width of the window.
- height
- Int32
The height of the window.
- name
- String
The name of the window.
- parent
-
IntPtr
nativeint
The handle of the window's parent window.
- Attributes
Remarks
Important
This method is not available in the Internet security zone.
Applies to
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);
public HwndSource (int classStyle, int style, int exStyle, int x, int y, int width, int height, string name, IntPtr parent, bool adjustSizingForNonClientArea);
[<System.Security.SecurityCritical>]
new System.Windows.Interop.HwndSource : int * int * int * int * int * int * int * string * nativeint * bool -> System.Windows.Interop.HwndSource
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
The Win32 class styles for the window.
- style
- Int32
The Win32 styles for the window.
- exStyle
- Int32
The extended Win32 styles for the window.
- x
- Int32
The position of the window's left edge.
- y
- Int32
The position of the window's upper edge.
- width
- Int32
The width of the window.
- height
- Int32
The height of the window.
- name
- String
The name of the window.
- parent
-
IntPtr
nativeint
The handle of the window's parent window.
- adjustSizingForNonClientArea
- Boolean
true
to have the layout manager include the non-client area for sizing; otherwise, false
.
- Attributes
Remarks
Important
This method is not available in the Internet security zone.
Applies to
.NET