Yes it is the SetParent API.

I also use the SetWindowLong API to prevent that the options window looses focus when the other form is activated:

Code:
lWindowStyle = GetWindowLong(lWindowhWnd, GWL_STYLE)
SetWindowLong lWindowhWnd, GWL_STYLE, lWindowStyle Or WS_CHILD