15,978
社区成员
发帖
与我相关
我的任务
分享
CRect rectDummy;
rectDummy.SetRectEmpty();
CWnd* pWnd = (CWnd*)GetDlgItem(IDC_GROUP1); //your group id.
if (pWnd != NULL)
{
pWnd->ShowWindow(SW_HIDE);
pWnd->GetWindowRect(&rectDummy);
ScreenToClient(&rectDummy);
}
else
{
return;
}
// Create child window:
m_dlg.Create(IDD_YOURDLD, this);
m_dlg.MoveWindow(rectDummy);