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);
改变窗体的隶属关系
最新推荐文章于 2021-11-28 22:33:27 发布
本文介绍如何通过修改窗口样式属性实现窗口的调整,包括去除标题栏、设置为子窗口、调整窗口大小及位置等。
1268

被折叠的 条评论
为什么被折叠?



