cb = pidl2->mkid.cb. pidl2->mkid.cb = 0. 下面是打开文件夹及选中文件的代码,相信大家不难理解。 /// 打开目标文件所在的文件夹 if (SUCCEEDED(GetShellFolderViewDual(pidl, &.pIShellFolderViewDual))) { pidl2->mkid.cb = cb. // 0 De0select the item. // 1 Select the item. // 3 Put the item in edit mode. // 4 De0select all but the specified item. // 8 Ensure the item is displayed in the view. // 0x10 Give the item the focus. COleVariant bszFile(pidl2).