| |

VerySource

 Forgot password?
 Register
Search
View: 794|Reply: 3

Questions about documents

[Copy link]

4

Threads

20

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-18 09:20:01
| Show all posts |Read mode
Question 1: What API functions can appear in the Properties dialog box in the right-click menu of a file or folder in Explorer
Question 2: When using the API function SHFileOperation (), how to track the deletion of a folder with a progress bar?
Reply

Use magic Report

0

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 LAN

Post time: 2020-1-23 14:00:02
| Show all posts
1. Display the file properties dialog:
void CrnShowFileProp (char * szFileName)
{
    SHELLEXECUTEINFO sei;
    ZeroMemory (&sei, sizeof (sei));
    sei.cbSize = sizeof (sei);
    sei.lpFile = szFileName;
    sei.lpVerb = "Properties";
    sei.fMask = SEE_MASK_INVOKEIDLIST;
    // Note here that lpFile must be assigned the corresponding file name, and lpVerb must be assigned the value "properties"
    // fMask must be assigned the value SEE_MASK_INVOKEIDLIST.
    // Next call the ShellExecuteEx API function:
    ShellExecuteEx (&sei);
}
// Example of use:
CrnShowFileProp ("C:\\夜 云 男爵\\123.exe");

2. When using SHFileOperation to delete a file, a progress bar can be displayed. Do not specify the FOF_SILENT parameter.
Reply

Use magic Report

4

Threads

20

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 South Africa

 Author| Post time: 2020-2-7 20:15:02
| Show all posts
That progress bar comes with the system. I want to use the progress bar I created to display it.
Reply

Use magic Report

4

Threads

20

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

 Author| Post time: 2020-2-11 20:00:02
| Show all posts
Can folders also use that code?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list