Rhino C++ API  8.7
Public Member Functions | List of all members
CRhRdkFileDialogFilter Class Reference

#include <RhRdkFileDialogFilter.h>

Inheritance diagram for CRhRdkFileDialogFilter:
CRhRdkObject CRhRdkImageFileDialogFilter CRhRdkEXRFileDialogFilter CRhRdkHDRFileDialogFilter

Public Member Functions

 CRhRdkFileDialogFilter ()
virtual ~CRhRdkFileDialogFilter ()
virtual void Add (const ON_wString &sName, const ON_wString &sFriendlyPattern, const wchar_t *wszPattern=nullptr)
virtual const wchar_t * Buffer (bool bConvertBars=true) const
- Public Member Functions inherited from CRhRdkObject
 CRhRdkObject ()
virtual ~CRhRdkObject ()
virtual void * EVF (const wchar_t *wszFunc, void *pvData)
void operator delete (void *buf)
void operator delete[] (void *buf)
void * operator new (size_t size)
void * operator new[] (size_t size)

Additional Inherited Members

- Static Public Member Functions inherited from CRhRdkObject
static void CheckMemory (void)
static void PopulateDebuggingInfo (void)

Constructor & Destructor Documentation

◆ CRhRdkFileDialogFilter()

CRhRdkFileDialogFilter::CRhRdkFileDialogFilter ( )

◆ ~CRhRdkFileDialogFilter()

virtual CRhRdkFileDialogFilter::~CRhRdkFileDialogFilter ( )

Member Function Documentation

◆ Add()

virtual void CRhRdkFileDialogFilter::Add ( const ON_wString sName,
const ON_wString sFriendlyPattern,
const wchar_t *  wszPattern = nullptr 

Add a filter to the collection.

sNameis the localized name. e.g., "JPEG File"
sFriendlyPatternis the human-readable pattern. e.g., "*.jpg, *.jpeg" Parentheses are added automatically.
wszPatternis the optional machine-readable pattern. e.g., "*.jpg;*.jpeg" If null, uses sFriendlyPattern.

◆ Buffer()

virtual const wchar_t* CRhRdkFileDialogFilter::Buffer ( bool  bConvertBars = true) const

Get output for use in CFileDialog() or CFileDialog::m_ofn.lpstrFilter.

bConvertBarsis 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.