Windows API Calls for Powerbuilder 5.0

¹®Á¦

GetParent( )

ÇØ°á

This function receives the handle of a child and returns the handle of its parent. The Powerbuilder function GetParent is identical.
The PB syntax is as follows: objectname.GetParent( )

Global External Function:
FUNCTION ulong GetParent(ulong hwnd) LIBRARY "User32.dll"

Script:
ulong l_handle, rtn
l_handle = handle(cb_getparent) // Command Button name
rtn = GetParent(l_handle)
Messagebox("GetParent", "Parent handle = " + string(rtn) + &
                                  " / Child handle = " + string(l_handle))

 

ÂüÁ¶