HwndSource コンストラクター

定義

HwndSource クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
HwndSource(HwndSourceParameters)

初期設定を含む構造体を使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、名前、および親ウィンドウを使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、幅、高さ、名前、および親ウィンドウを使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、幅、高さ、名前、および親ウィンドウを使用して、ウィンドウが自動サイズ化されているかどうかを指定して、 HwndSource クラスの新しいインスタンスを初期化します。

注釈

Important

この方法は、インターネット セキュリティ ゾーンでは使用できません。

HwndSource(HwndSourceParameters)

初期設定を含む構造体を使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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
HwndSourceParameters

ウィンドウの作成に必要なパラメーターを含む構造体。

属性

注釈

Important

この方法は、インターネット セキュリティ ゾーンでは使用できません。

既定の構造体には適切な初期値が含まれているため、特定の状況では、このコンストラクターシグネチャの方が便利な場合があります。

Important

このシグネチャを使用する場合は、既定のHwndSourceParameters コンストラクターを使用して、HwndSourceParameters値のparameters構造体を構築しないでください。 初期ウィンドウ名を指定できる HwndSourceParameters コンストラクターを使用する必要があります。 既定の HwndSourceParameters コンストラクターを使用して HwndSource を作成した場合、初期ウィンドウ名は表される HWND の構築要件であるため、その HwndSource は表示されません。

適用対象

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、名前、および親ウィンドウを使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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)

パラメーター

classStyle
Int32

ウィンドウの Win32 クラス スタイル。

style
Int32

ウィンドウの Win32 スタイル。

exStyle
Int32

ウィンドウの拡張 Win32 スタイル。

x
Int32

ウィンドウの左端の位置。

y
Int32

ウィンドウの上端の位置。

name
String

ウィンドウの名前を指定します。

parent
IntPtr

nativeint

ウィンドウの親ウィンドウのハンドル。

属性

注釈

Important

この方法は、インターネット セキュリティ ゾーンでは使用できません。

適用対象

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、幅、高さ、名前、および親ウィンドウを使用して、 HwndSource クラスの新しいインスタンスを初期化します。

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)

パラメーター

classStyle
Int32

ウィンドウの Win32 クラス スタイル。

style
Int32

ウィンドウの Win32 スタイル。

exStyle
Int32

ウィンドウの拡張 Win32 スタイル。

x
Int32

ウィンドウの左端の位置。

y
Int32

ウィンドウの上端の位置。

width
Int32

ウィンドウの幅。

height
Int32

ウィンドウの高さ。

name
String

ウィンドウの名前を指定します。

parent
IntPtr

nativeint

ウィンドウの親ウィンドウのハンドル。

属性

注釈

Important

この方法は、インターネット セキュリティ ゾーンでは使用できません。

適用対象

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

指定したクラス スタイル、スタイル、拡張スタイル、x-y 位置、幅、高さ、名前、および親ウィンドウを使用して、ウィンドウが自動サイズ化されているかどうかを指定して、 HwndSource クラスの新しいインスタンスを初期化します。

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)

パラメーター

classStyle
Int32

ウィンドウの Win32 クラス スタイル。

style
Int32

ウィンドウの Win32 スタイル。

exStyle
Int32

ウィンドウの拡張 Win32 スタイル。

x
Int32

ウィンドウの左端の位置。

y
Int32

ウィンドウの上端の位置。

width
Int32

ウィンドウの幅。

height
Int32

ウィンドウの高さ。

name
String

ウィンドウの名前を指定します。

parent
IntPtr

nativeint

ウィンドウの親ウィンドウのハンドル。

adjustSizingForNonClientArea
Boolean

true レイアウト マネージャーにサイズ設定用のクライアント以外の領域を含める場合。それ以外の場合は false

属性

注釈

Important

この方法は、インターネット セキュリティ ゾーンでは使用できません。

適用対象