Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about Filter.cpp #20

Open
amtopel opened this issue Jun 21, 2019 · 10 comments
Open

Question about Filter.cpp #20

amtopel opened this issue Jun 21, 2019 · 10 comments

Comments

@amtopel
Copy link

amtopel commented Jun 21, 2019

Hi, could you explain what Filter.cpp does? Thank you very much!

@stefankueng
Copy link
Owner

it filters out the contents in the active explorer window.
The edit box in StExBar at the very right can be used as a filter. Just enter some text there and you'll see.
The filter is only active if configured so in the settings:
under the checkbox "Hide edit box" (leave unchecked) you can select what the edit box is used for:
either select "Filter" or "Auto".

If you selected "Filter", just enter text and watch how it filters all shown files.
If you selected "Auto", enter "f filtertext" (the 'f' in front indicates that the text after it is to be used as the filter text).

@amtopel
Copy link
Author

amtopel commented Jun 21, 2019 via email

@stefankueng
Copy link
Owner

The pause is intentional so the filter does not start while the user is still typing.
But pressing enter will start the filter immediately.
And a double click on the edit box will clear the filter immediately.

@amtopel
Copy link
Author

amtopel commented Jun 21, 2019 via email

@amtopel
Copy link
Author

amtopel commented Jun 21, 2019 via email

@stefankueng
Copy link
Owner

I can only guess: but in earlier windows versions you could configure explorer to show filter boxes.
And as far as I know, it only filters for one string, not multiple.

@amtopel
Copy link
Author

amtopel commented Jun 21, 2019 via email

@amtopel
Copy link
Author

amtopel commented Jul 19, 2019

Sorry, one more question: what command actually triggers the folder to change the files listed in the view? Is it SendMessage? Or something else? I can't quite figure it out from looking at the source. Thanks again!

@stefankueng
Copy link
Owner

the IShellFolderView object has AddObject and RemoveObject methods. The update is done with the call to SetRedraw(true).

To avoid having the view refresh for every added/removed object, first SetRedraw(false) is called which prevents the view from redrawing, until SetRedraw(true) is called.

@amtopel
Copy link
Author

amtopel commented Jul 20, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants