How VC++ automatically pops up some windows of the Windows system through code (with source code)

       Sometimes when some problems are detected in the software, it is necessary to open some windows of the related Windows system for the user to view or make settings. This article briefly describes how to pop up some Windows system windows related to software.

1. The "Open With->Choose Program..." dialog box pops up

       In some download software, when the target file is downloaded, it provides the functions of "opening the file" and "opening the folder where the file is located". When the user clicks the "Open File" button, the file's default program is used to open the file. If there is no default program for opening this type of file in the system, the "Open with -> Select Program..." dialog box needs to pop up automatically , allowing the user to choose which program to use to open the target file, as follows:

In addition to the functions of "opening file" and "opening the folder where the file is located" in the download software, in the IM software, these two functions are also provided when accepting files sent by others.

       We can open the "Open With->Choose Program..." dialog using the following code:

// 打开“打开方式->选择程序...

Guess you like

Origin blog.csdn.net/chenlycly/article/details/124083169