HwndSource Constructeurs

Définition

Initialise une nouvelle instance de la classe HwndSource.

Surcharges

HwndSource(HwndSourceParameters)

Initialise une nouvelle instance de la classe HwndSource en utilisant une structure qui contient les paramètres initiaux.

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x, y, un nom et une fenêtre parente spécifiés.

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x, y, une hauteur, une largeur, un nom et une fenêtre parente spécifiés.

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x-y, une largeur, une hauteur, un nom et une fenêtre parente spécifiés et en indiquant si la fenêtre est redimensionnée automatiquement.

Remarques

Important

Cette méthode n’est pas disponible dans la zone de sécurité Internet.

HwndSource(HwndSourceParameters)

Initialise une nouvelle instance de la classe HwndSource en utilisant une structure qui contient les paramètres initiaux.

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)

Paramètres

parameters
HwndSourceParameters

Structure qui contient les paramètres requis pour créer la fenêtre.

Attributs

Remarques

Important

Cette méthode n’est pas disponible dans la zone de sécurité Internet.

Cette signature de constructeur peut être plus pratique dans certaines situations, car la structure par défaut contient certaines valeurs par défaut initiales appropriées.

Important

Si vous utilisez cette signature, n’utilisez pas le constructeur par défaut HwndSourceParameters pour construire la HwndSourceParameters structure de la parameters valeur. Vous devez utiliser le HwndSourceParameters constructeur qui vous permet de spécifier un nom de fenêtre initiale. Si vous utilisez le constructeur par défaut HwndSourceParameters et créez-en un HwndSource avec celui-ci, cela HwndSource ne s’affiche pas, car un nom de fenêtre initiale est une exigence de construction pour le HWND représenté.

S’applique à

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x, y, un nom et une fenêtre parente spécifiés.

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)

Paramètres

classStyle
Int32

Styles de classe Win32 pour la fenêtre.

style
Int32

Styles Win32 pour la fenêtre.

exStyle
Int32

Styles Win32 étendus pour la fenêtre.

x
Int32

Position du bord gauche de la fenêtre.

y
Int32

Position du bord supérieur de la fenêtre.

name
String

Nom de la fenêtre.

parent
IntPtr

nativeint

Handle de la fenêtre parente de la fenêtre.

Attributs

Remarques

Important

Cette méthode n’est pas disponible dans la zone de sécurité Internet.

S’applique à

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x, y, une hauteur, une largeur, un nom et une fenêtre parente spécifiés.

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)

Paramètres

classStyle
Int32

Styles de classe Win32 pour la fenêtre.

style
Int32

Styles Win32 pour la fenêtre.

exStyle
Int32

Styles Win32 étendus pour la fenêtre.

x
Int32

Position du bord gauche de la fenêtre.

y
Int32

Position du bord supérieur de la fenêtre.

width
Int32

Largeur de la fenêtre.

height
Int32

Hauteur de la fenêtre.

name
String

Nom de la fenêtre.

parent
IntPtr

nativeint

Handle de la fenêtre parente de la fenêtre.

Attributs

Remarques

Important

Cette méthode n’est pas disponible dans la zone de sécurité Internet.

S’applique à

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

Initialise une nouvelle instance de la classe HwndSource avec un style de classe, un style, un style étendu, une position x-y, une largeur, une hauteur, un nom et une fenêtre parente spécifiés et en indiquant si la fenêtre est redimensionnée automatiquement.

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)

Paramètres

classStyle
Int32

Styles de classe Win32 pour la fenêtre.

style
Int32

Styles Win32 pour la fenêtre.

exStyle
Int32

Styles Win32 étendus pour la fenêtre.

x
Int32

Position du bord gauche de la fenêtre.

y
Int32

Position du bord supérieur de la fenêtre.

width
Int32

Largeur de la fenêtre.

height
Int32

Hauteur de la fenêtre.

name
String

Nom de la fenêtre.

parent
IntPtr

nativeint

Handle de la fenêtre parente de la fenêtre.

adjustSizingForNonClientArea
Boolean

true pour que le gestionnaire de présentation inclut la zone non cliente pour le redimensionnement ; sinon false.

Attributs

Remarques

Important

Cette méthode n’est pas disponible dans la zone de sécurité Internet.

S’applique à