GetWindow

Description:

baGetWindow gets a window that is related to another window.

Platforms:

Windows

Usage:

Result = baGetWindow( WindowHandle , Relation )

Arguments:

Integer, string.
WindowHandle is the handle of the window.
Relation is the type of relationship to look for. Can be one of the following:

"child" 

gets the first child window

"first" 

gets the first window

"last" 

gets the last window

"next" 

gets the next window

"previous" 

gets the previous window

"owner" 

gets the window's owner

"parent" 

gets the window's parent

Returns:

Integer.
Returns the handle of the found window, or 0 if the requested window could not be found.

Examples:

Director:
wnd = baGetWindow( 2349 , "parent" )

Authorware:
wnd := baGetWindow( 2349 , "parent" )