Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalWindowHandle PalWinFindPreviousFrame( SalString sWindowName, SalNumber nWindowState )
The PalWinFindPreviousFrame finds the first open copy in the specified state of a top-level window.
Name | Description |
---|---|
SalString sWindowName | Name of the window to find. |
SalNumber nWindowState | State of the window. Only windows in this state will be included in the search. Specify any of the Sys.Window_* constants. |
The return value is the window handle of the window found, or Sys.hWndNULL if no open window of the name and state was found.
! Show order window or open a new one if no window is found. Set hWndOrder = PalWinFindPreviousFrame( 'frmOrder', Window_Normal ) If hWndOrder Call SalBringWindowToTop( hWndOrder ) Else Call SalCreateWindow( frmOrder, hWndMDI )