24,854
社区成员
发帖
与我相关
我的任务
分享
LONG style = ::GetWindowLong(hwnd, GWL_STYLE);
style &= ~WS_CAPTION;
style &= ~WS_CLIPSIBLINGS;
style |= WS_CHILD;
::SetWindowLong(hwnd, GWL_STYLE, style);
::SetParent(hwnd, m_hWnd);
::SetWindowPos(hwnd, HWND_TOP, rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top, SWP_SHOWWINDOW | SWP_FRAMECHANGED);
::BringWindowToTop(hwnd);