Share via


CMFCFilterChunkValueImpl Class

This is a class which simplifies both chunk and property value pair logic.

class CMFCFilterChunkValueImpl : public ATL::IFilterChunkValue;

Members

Public Constructors

Name

Description

CMFCFilterChunkValueImpl::~CMFCFilterChunkValueImpl

Destructs the object.

CMFCFilterChunkValueImpl::CMFCFilterChunkValueImpl

Constructs the object.

Public Methods

Name

Description

CMFCFilterChunkValueImpl::Clear

Clears the ChunkValue.

CMFCFilterChunkValueImpl::CopyChunk

Copies this chunk to a structure describing the characteristics of a chunk.

CMFCFilterChunkValueImpl::CopyFrom

Initializes this chunk value from the other value.

CMFCFilterChunkValueImpl::GetChunkGUID

Retrieves the chunk GUID.

CMFCFilterChunkValueImpl::GetChunkPID

Retrieves the chunk PID (property ID).

CMFCFilterChunkValueImpl::GetChunkType

Gets chunk type.

CMFCFilterChunkValueImpl::GetString

Retrieves the the string value.

CMFCFilterChunkValueImpl::GetValue

Retrieves the value as an allocated propvariant.

CMFCFilterChunkValueImpl::GetValueNoAlloc

Returns non-allocated (internal value) value.

CMFCFilterChunkValueImpl::IsValid

Checks whether this property value is valid or not.

CMFCFilterChunkValueImpl::SetBoolValue

Overloaded. Sets the property by key to a Boolean.

CMFCFilterChunkValueImpl::SetDwordValue

Sets the property by key to a DWORD.

CMFCFilterChunkValueImpl::SetFileTimeValue

Sets the property by key to a filetime.

CMFCFilterChunkValueImpl::SetInt64Value

Sets the property by key to an int64.

CMFCFilterChunkValueImpl::SetIntValue

Sets the property by key to an int.

CMFCFilterChunkValueImpl::SetLongValue

Sets the property by key to a LONG.

CMFCFilterChunkValueImpl::SetSystemTimeValue

Sets the property by key to a SystemTime.

CMFCFilterChunkValueImpl::SetTextValue

Sets the property by key to a Unicode string.

Protected Methods

Name

Description

CMFCFilterChunkValueImpl::SetChunk

A helper function that sets the chunk's common properties.

Remarks

To use, you simply create a CMFCFilterChunkValueImpl class of the right kind

Example:

CMFCFilterChunkValueImpl chunk;

hr = chunk.SetBoolValue(PKEY_IsAttachment, true);

or

hr = chunk.SetFileTimeValue(PKEY_ItemDate, ftLastModified);

Inheritance Hierarchy

ATL::IFilterChunkValue

   CMFCFilterChunkValueImpl

Requirements

Header: afxwin.h

See Also

Other Resources

MFC 10 Classes