#include <RhRdkFileDialogFilter.h>
◆ CRhRdkFileDialogFilter()
CRhRdkFileDialogFilter::CRhRdkFileDialogFilter |
( |
| ) |
|
◆ ~CRhRdkFileDialogFilter()
virtual CRhRdkFileDialogFilter::~CRhRdkFileDialogFilter |
( |
| ) |
|
|
virtual |
◆ Add()
virtual void CRhRdkFileDialogFilter::Add |
( |
const ON_wString & |
sName, |
|
|
const ON_wString & |
sFriendlyPattern, |
|
|
const wchar_t * |
wszPattern = nullptr |
|
) |
| |
|
virtual |
Add a filter to the collection.
- Parameters
-
sName | is the localized name. e.g., "JPEG File" |
sFriendlyPattern | is the human-readable pattern. e.g., "*.jpg, *.jpeg" Parentheses are added automatically. |
wszPattern | is the optional machine-readable pattern. e.g., "*.jpg;*.jpeg" If null, uses sFriendlyPattern. |
◆ Buffer()
virtual const wchar_t* CRhRdkFileDialogFilter::Buffer |
( |
bool |
bConvertBars = true | ) |
const |
|
virtual |
Get output for use in CFileDialog() or CFileDialog::m_ofn.lpstrFilter.
- Parameters
-
bConvertBars | is true to convert bars (|) to zeroes, false to leave bars intact. Typically you will pass false to use the result as the constructor param for CFileDialog, and true when using CFileDialog::m_ofn.lpstrFilter. |