Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.12 KB

File metadata and controls

48 lines (34 loc) · 1.12 KB

Home

Function name : SetParent

Group: Window - Library: user32


The SetParent function changes the parent window of the specified child window.


Code examples:

How to activate Windows Calculator
Confining Windows calculator inside the VFP main window
Running a regular FoxPro form while main VFP window is minimized

Declaration:

HWND SetParent(
  HWND hWndChild,      // handle to window
  HWND hWndNewParent   // new parent window
);  

FoxPro declaration:

DECLARE INTEGER SetParent IN user32;
	INTEGER hWndChild,;
	INTEGER hWndNewParent  

Parameters:

hWndChild [in] Handle to the child window.

hWndNewParent [in] Handle to the new parent window.


Return value:

If the function succeeds, the return value is a handle to the previous parent window. If the function fails, the return value is NULL.