AfxOleGetMessageFilter

COleMessageFilter* AFXAPI AfxOleGetMessageFilter( );

#include <afxwin.h>

Return Value

A pointer to the current message filter.

Remarks

Retrieves the application’s current message filter. Call this function to access the current COleMessageFilter-derived object, just as you would call AfxGetApp to access the current application object.

Example

COleMessageFilter* pFilter = AfxOleGetMessageFilter();
ASSERT_VALID(pFilter);
pFilter->BeginBusyState();
// do things requiring a busy state
pFilter->EndBusyState();

See Also   COleMessageFilter, AfxGetApp