Class FilterList
class FilterList
Description:
A class whose sole purpose is for building up a filter list to pass to the Windows API functions GetSaveFileName() and GetOpenFileName(). It automatically puts in the embedded nulls and two terminating nulls. All methods are implemented by the system.
Example usage:
FilterList filterList;
filterList.Append(_T("MAX files(*.max)"));
filterList.Append(_T("*.max"));
ofn.lpstrFilter = filterList;
GetSaveFileName(&ofn)
Data Members:
#define LISTBUFLEN 2048
public:
TCHAR buf[LISTBUFLEN];
int length;
Methods:
Prototype:
FilterList();
Remarks:
Constructor. Sets buf to all zeros and sets the length to 0.
Return Value:
A new FilterList object.
Prototype:
void Append(TCHAR *name);
Remarks:
Appends the string passed to buf.
Prototype:
operator TCHAR *()
Remarks:
Returns the address of buf.