IWin32Window 인터페이스

정의

Win32 HWND 핸들을 노출하기 위한 인터페이스를 제공합니다.

public interface class IWin32Window
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("458AB8A2-A1EA-4d7b-8EBE-DEE5D3D9442C")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IWin32Window
public interface IWin32Window
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("458AB8A2-A1EA-4d7b-8EBE-DEE5D3D9442C")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IWin32Window = interface
type IWin32Window = interface
Public Interface IWin32Window
파생
특성

예제

다음 예제에서는 합니다 Text 속성을 label1 현재 HandleForm1합니다. 이 예에서는 있다고 가정를 Form 호출 Form1 사용 하 여를 Label 호출 label1 에 있습니다.

public:
   Form1()
   {
      InitializeComponent();
      this->label1->Text = this->Handle.ToString();
   }
public Form1()
{
   InitializeComponent();

   this.label1.Text = this.Handle.ToString();
}
Public Sub New()
    InitializeComponent()
    
    Me.label1.Text = Me.Handle.ToString()
End Sub

설명

이 인터페이스는 Win32 HWND 핸들을 노출 하는 개체에서 구현 됩니다. 결과 핸들은 Windows API 호출과 함께 사용할 수 있습니다.

속성

Handle

구현자가 나타내는 창에 대한 핸들을 가져옵니다.

적용 대상