#DEFINE GW_CHILD 5 #DEFINE GW_NEXT 2 lnhwnd = _WhTohWnd(_Wontop()) DECLARE INTEGER GetParent IN Win32API; INTEGER hWnd DECLARE INTEGER GetWindow IN Win32API; INTEGER hwnd, INTEGER dflag DECLARE INTEGER GetWindowText IN Win32API; INTEGER hwnd, STRING @lptstr, INTEGER cbmax * Get the parent lnparent = GetParent(lnhwnd) * Get the first child lnchild = GetWindow(lnparent, GW_CHILD) DO WHILE lnchild > 0 lcbuffer = SPACE(260) lnlength = GetWindowText(lnchild, @lcbuffer, 260) ? LEFT(lcbuffer, lnlength) lnchild = GetWindow(lnchild, GW_NEXT) ENDDO