Is there a way to choose which files are displayed to the user via the standard OPENFILE dialogs?

后端 未结 2 466
迷失自我
迷失自我 2020-12-21 07:13

Vista introduced an interface: IFileDialog::SetFilter, which allows me to setup a filter that will be called for every potential filename to see if it should be shown to the

2条回答
  •  执笔经年
    2020-12-21 07:54

    You need to initialise the callbacks for your CFileDialog. Then you need to process CDN_INCLUDEITEM notification code to include or exclude items.

    You can also check this great article. The author uses some other approaches in addition to callbacks

提交回复
热议问题