- custom filters in open file dialog
- Posted by jahhaj on July 31st, 2006
I have a really stupid requirement (I'm trying to get it changed). In a
file open dialog I want to either show all files of a given type
(*.zzz say) or only show a subset of the *.zzz file (based on the
contents of the file). The user will be able to switch between these
two views using the 'files of type' drop down.
Now I can easily show only the subset of *.zzz file by trapping the
CDN_FOLDERCHANGE notification and deleteing the *.zzz file I don't want
to show from the list view control. The problem occurs when the user
switches between views using the 'files of type' drop down. This
results in a ODN_TYPECHANGE notification but at this point it seems
that the list view control is empty (presumably Windows populates it
later) so I don't have the chance to apply my filter.
Does any have any suggestions how I can do this?
Thanks,
John
- Posted by jahhaj on July 31st, 2006
jahhaj wrote:
Typos:
*.zzz files
CDN_TYPECHANGE
- Posted by Alf P. Steinbach on July 31st, 2006
* jahhaj:
Post a message.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
- Posted by jahhaj on July 31st, 2006
Alf P. Steinbach wrote:
I've already tried that but it didn't work. Not sure why, maybe Windows
is postings messages too.
- Posted by jahhaj on July 31st, 2006
jahhaj wrote:
To elaborate a bit. I tried posting a WM_NOTIFY/CDN_FOLDERCHANGE
message when I was handling the CDN_TYPECHANGE notification. The
message was posted and received successfully, but at the point it was
received the list view control still had zero items.
- Posted by Alf P. Steinbach on July 31st, 2006
* jahhaj:
Just perhaps the CDN_FOLDERCHANGE you processed was not the one you
posted. I'd a try a WM_COMMAND. In the worst case you could set up a
timer.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?