Name

GetParent

Synopsis

Returns an hWnd of the parent window to the specified window:

Public Declare Function GetParent Lib "user32" Alias "GetParent" _
		(ByVal hwnd As Long) As Long

Parameters

hwnd

The handle of the child window

Return Value

The handle of that child’s parent window

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.