UINT32 iStyle = ::GetWindowLong(hSubWindow, GWL_STYLE);
iStyle &= ~WS_CAPTION;
iStyle |= WS_CHILD;
::SetWindowLong(hSubWindow, GWL_STYLE, iStyle);
::SetParent(hSubWindow, hWindow);
::ShowWindow(hSubWindow, SW_NORMAL);
::SetWindowPos(hSubWindow, HWND_TOP, 0, 0, 1040, 840, SWP_ASYNCWINDOWPOS);