Windows属性和搜索 [英] Windows Property and search

查看:77
本文介绍了Windows属性和搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在定制FileOpenDialog.我只是想知道如何以编程方式根据文件的大小过滤(隐藏或显示)(大小只是一个示例,我通过使用propdesc.schema以名称"Level"添加了一个列,并希望根据文件的级别过滤项目).

我知道我们可以按照下面提供的步骤过滤这些文件
例如.打开Notepad.exe->文件菜单->打开->浏览到特定的驱动器(包含大小为<1KB至> 16MB的* .txt文件)->在列出文件的区域中,单击大小"列,(此处带有复选框的菜单带有Tiny,Medium,Large和Unspecified等各种选项)选择菜单,例如Tiny.现在,我们只能看到大小符合我们选择的文件,即Tiny.

是否可以以编程方式进行?我想在FileOpenDialog框中添加的按钮上单击以执行此操作.任何帮助将不胜感激.

谢谢,
Sanil

Hi All,
I am working on Customization of FileOpenDialog. I just wanted to know how to filter (hide or display) particular file depending upon their size programatically (Size is just a example I added one column by the name "Level" by using propdesc.schema and want to filter items depending on their levels).

I know that we can filter these files by following steps provided below
For eg. Open Notepad.exe -> File Menu -> Open -> Browse to particular drive (containing *.txt files of size < 1KB to > 16MB) -> In area where files are listed Click on Size column , (here menu with checkbox comes with Various options such as Tiny, medium, large and unspecified) select menu, say Tiny. Now we see only files which have size as per our selection i.e. Tiny.

Is it possible to do programatically? I want to carry out this operation on the click of button added on FileOpenDialog box. Any help will be highly appreciated.

Thanks,
Sanil

推荐答案

尝试对CFileDialog进行子类化,并从中获取列表控件句柄.然后遍历列表ctrl中的每个项目,执行任何操作..它可能会起作用:)不要问我是否不起作用.
try sub classing CFileDialog, and get the list control handle out of it. Then loop through each items in list ctrl, do whatever.. it may work :) Don''t ask me if it not works.


这篇关于Windows属性和搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆