This example uses the WinSetOwner call to "disown" a window.
#define INCL_WINWINDOWMGR #include <OS2.H> HWND hwnd; /* window handles. */ WinSetOwner(hwnd,(HWND)0);