I want that automatically when I change the extension of the files I want to see, the dialog automatically also change the folder of the list of files. The '.txt' files are in one folder, the '.doc' files in another ...
I already intercept CDN_TYPECHANGE in my OnTypeChange ()
...to change the directory what code I have to write where in your example you put the rem
// First extension type selected
// Second selection type selected
for list in my CFileDialog a different dir?
No, this code won't work.
SetCurrentDirectory just sets the current directory. It cannot change the folder selection within the CFileDialog.
You have to find the possibility to change the folder selection within the CFileDialog control(s)!