程序片段-CAD开发中常见问题.rar 删除文件放入回收站 SHFILEOPSTRUCT FileOp; FileOp.hwnd = NULL; FileOp.wFunc = FO_DELETE; FileOp.pFrom = _T("C:Test.txt"); FileOp.pTo = NULL; FileOp.fFlags = FOF_ALLOWUNDO | FOF_NOERRORUI; if ( ::SHFileOperation( &FileOp ) == 0 ) ::MessageBox( NULL, _T("操作成功"), _T("提示"), MB_OK|MB_ICONINFOR