PA_GetFrontWindowProcess

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_GetFrontWindowProcess (withPalette) long

ParameterTypeDescription
withPalettechar1 = Consider floating windows
Function resultlongNumber of the process that owns the
front window  

Description

The routine PA_GetFrontWindowProcess returns the process number that owns the front most window. If withPalette is 0, the routine ignores floating windows, otherwise it take them into account and returns the number of the process that owns the front most floating window.

To retrieve the process that owns an other window, use PA_GetWindowProcess.

Example

Bring to front if not already there.

   long   myProcess;
   myProcess = PA_GetCurrentProcessNumber();
   if( PA_GetFrontWindowProcess(0) != myProcess )
      PA_BringProcessToFront(myProcess);

See Also

No reference.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next