HwndSource Constructeurs
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Initialise une nouvelle instance de la classe HwndSource.
Surcharges
| Nom | Description |
|---|---|
| HwndSource(HwndSourceParameters) |
Initialise une nouvelle instance de la classe à l’aide HwndSource d’une structure qui contient les paramètres initiaux. |
| HwndSource(Int32, Int32, Int32, Int32, Int32, String, IntPtr) |
Initialise une nouvelle instance de la HwndSource classe avec un style de classe, un style, un style étendu, une position x-y, un nom et une fenêtre parente spécifiées. |
| HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr) |
Initialise une nouvelle instance de la HwndSource classe 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ées. |
| HwndSource(Int32, Int32, Int32, Int32, Int32, Int32, Int32, String, IntPtr, Boolean) |
Initialise une nouvelle instance de la HwndSource classe 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ées, et en spécifiant si la fenêtre est automatiquement mise en forme. |
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 à l’aide HwndSource d’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);
[<System.Security.SecurityCritical>]
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 initial. Si vous utilisez le constructeur par défaut HwndSourceParameters et créez-en un HwndSource avec celui-ci, cela HwndSource n’est pas affiché, 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 HwndSource classe avec un style de classe, un style, un style étendu, une position x-y, un nom et une fenêtre parente spécifiées.
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);
[<System.Security.SecurityCritical>]
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 HwndSource classe 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ées.
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);
[<System.Security.SecurityCritical>]
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 HwndSource classe 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ées, et en spécifiant si la fenêtre est automatiquement mise en forme.
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);
[<System.Security.SecurityCritical>]
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 disposition inclue la zone non cliente pour le dimensionnement ; sinon, false.
- Attributs
Remarques
Important
Cette méthode n’est pas disponible dans la zone de sécurité Internet.