以下, dlg 要不要delete? (delete dlg) CDlgFlash *dlg = new CDlgFlash(this);
dlg->Create(CDlgFlash::IDD, this);
dlg->ShowWindow(SW_SHOW);
dlg->UpdateWindow();
.....
dlg->DestroyWindow();
dlg->Create(CDlgFlash::IDD, this);
dlg->ShowWindow(SW_SHOW);
dlg->UpdateWindow();
.....
dlg->DestroyWindow();
到底需不需要delete? 如果需要delete, 在什么地方delete?
Derived classes can use this function for custom cleanup such as the deletion of the this pointer.