16,548
社区成员




CAddDlg dlg(this);//对话框
dlg.Create(IDD_DIALOG1);
dlg.ShowWindow(SW_SHOW);
dlg.Detach();
HWND CWnd::Detach()
{
HWND hWnd = m_hWnd;
if (hWnd != NULL)
{
CHandleMap* pMap = afxMapHWND(); // don't create if not exist
if (pMap != NULL)
pMap->RemoveHandle(m_hWnd);
m_hWnd = NULL;
}
#ifndef _AFX_NO_OCC_SUPPORT
m_pCtrlSite = NULL;
#endif
return hWnd;
}