.NET/Windows API for .NET
GetParent - 자식 Window에 대한 부모 Window찾기
클리엘
2019. 8. 6. 11:39
728x90
GetParent함수는 지정된 자식 Window에서 부모 Window의 Handle을 찾아 반환합니다.
Declare Function GetParent Lib "user32" Alias "GetParent" (ByVal hwnd As Integer) As Integer
▶VB.NET 선언
[DllImport("user32")]
public static extern int GetParent(int hwnd);
▶C# 선언
해당 함수의 인수로는 부모 Window의 Handle을 찾을 자식 Window Handle을 지정합니다.
GetParent(handle)
▶VB.NET 호출
GetParent(handle);
▶C# 호출
728x90