I've been playing around with the TOpenDialog in Delphi XE2, and haven't been able to work out how to make the OnIncludeItem event work. I want to be able to show files based on their file name (or file size etc). Has anyone used this event successfully?
问问题
579 次
1 回答
5
TOpenDialog是Windows Common Dialog组件的封装。OnIncludeItem事件是对CDN_INCLUDEITEM通知机制 的封装。此通知的文档解释说,无论您从CDN_INCLUDEITEM通知消息(或 Delphi 中的事件)返回什么,始终包含设置了SFGAO_FILESYSTEM和SFGAO_FILESYSANCESTOR标志的项目。
此外,这些SFGAO属性的文档进一步向我表明,CDN_INCLUDEITEM机制从未打算用于过滤文件系统项,而是用于排除不属于文件系统的内容。
这在另一个稍微不同的问题的答案中得到证实。
于 2012-07-02T04:09:50.400 回答