PA_SetWindowProcess


version 2003


PA_SetWindowProcess (wRef; pNum)

Parameter Type Description
wRef PA_WindowRef Window reference
pNum long Process number

Description

The routine PA_SetWindowProcess sets the process whose number is pNum as the process where the window whose pointer is passed in wRef belongs.

IMPORTANT NOTE:

Do not apply this entry point to a window which belongs to to 4th Dimension or a System Error may occur.

Example

Create a window with a special private routine, and tell 4D that this window is ours.

   PA_WindowRef   w;
   w = MySpecialCreateWindow();
   PA_SetWindowProcess(w, PA_GetCurrentProcessNumber());

See Also

PA_GetWindowProcess .

Error Handling

PA_GetLastError

always returns eER_NoErr