change extensions in commdlg filter to rtf

svn path=/trunk/; revision=25296
This commit is contained in:
Christoph von Wittich 2007-01-04 22:35:34 +00:00
parent 15c3d63c0f
commit a0320a1bf7

View file

@ -29,15 +29,8 @@ DoOpenFile(HWND hwnd,
LPTSTR szTitleName) LPTSTR szTitleName)
{ {
DWORD err; DWORD err;
/*static TCHAR Filter[] = _T("All image files (*.gif,*.bmp,*.jpg,*.jpeg,*.tif,*.png)\0*.gif,*.bmp,*.jpg,*.jpeg,*.tif,*.png\0") \
_T("All files (*.*)\0*.*\0") \
_T("Graphics Interchange format (*gif)\0*.gif\0") \
_T("Windows Bitmap (*bmp)\0*.bmp\0") \
_T("JPEG File Interchange Format (*jpg,*.jpeg)\0*.jpg,*.jpeg\0") \
_T("TAG Image File Format (*tif)\0*.tif\0") \
_T("Portable Network Graphics (*png)\0*.png\0\0");*/
static TCHAR Filter[] = _T("Windows Bitmap (*.bmp)\0*.bmp\0"); static TCHAR Filter[] = _T("RichText files (*.rtf)\0*.rtf\0");
ofn.lpstrFilter = Filter; ofn.lpstrFilter = Filter;
ofn.lpstrFile = szFileName; ofn.lpstrFile = szFileName;
@ -63,11 +56,7 @@ BOOL
DoSaveFile(HWND hwnd) DoSaveFile(HWND hwnd)
{ {
TCHAR szFileName[MAX_PATH] = _T(""); TCHAR szFileName[MAX_PATH] = _T("");
static TCHAR Filter[] = _T("Graphics Interchange format (*gif)\0*.gif\0") \ static TCHAR Filter[] = _T("RichText files (*.rtf)\0*.rtf\0");
_T("Windows Bitmap (*bmp)\0*.bmp\0") \
_T("JPEG File Interchange Format (*jpg,*.jpeg)\0*.jpg,*.jpeg\0") \
_T("TAG Image File Format (*tif)\0*.tif\0") \
_T("Portable Network Graphics (*png)\0*.png\0\0");
ofn.lpstrFilter = Filter; ofn.lpstrFilter = Filter;
ofn.lpstrFile = szFileName; ofn.lpstrFile = szFileName;