Get extension file from FileDialog

I created a MyFileDialog class derived from FileDialog.
But I want to use a filter as FileDialog

example :

CFileDialog(... , ... , "*.tif", ... , Image TIFF CITT G 4 (*.tif)|*.tif|Image BMP (*.bmp)|*.bmp)

But I need the get the The default filename extension (*.tif)
and a list of specify filters (ex : *.tif and *.bmp) after the call of the FileDialog constructor

I need also to get the name associated with an extension
ex : Image BMP (*.bmp) from *.bmp

I know that the filter is contents in char* but I don't want to make a parser. Like FileDialog may do this, I just want to know if somebody knows how to do that.

I'm not sure that I'm clear so tell me if you don't understand.
thx.
[779 byte] By [beny] at [2007-11-18 1:40:19]