|
#pragma once
#include <atldlgs.h>
#if !defined(_WTL_USE_CSTRING) && !defined(__ATLSTR_H__) && !defined(__AFXSTR_H__)
#include <atlmisc.h>
#endif
class CFileFilterDialog :
public CFileDialog
{
CString m_Filters;
public:
CFileFilterDialog(BOOL bOpenFileDialog, // TRUE for FileOpen, FALSE for FileSaveAs
LPCTSTR lpszDefExt = NULL,
LPCTSTR lpszFileName = NULL,
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
LPCTSTR lpszFilter = NULL,
HWND hWndParent = NULL);
~CFileFilterDialog(void);
void AddFilter(LPCTSTR FilterName, LPCTSTR FilterMask);
void SetDefaultFilter(DWORD dwFilter);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here