COleMessageFilter::OnMessagePending

Called by the framework to process messages while an OLE call is in progress.

virtual BOOL OnMessagePending(
   const MSG* pMsg 
);

Parameters

  • pMsg
    Pointer to the pending message.

Return Value

Nonzero on success; otherwise 0.

Remarks

When a calling application is waiting for a call to be completed, the framework calls OnMessagePending with a pointer to the pending message. By default, the framework dispatches WM_PAINT messages, so that window updates can occur during a call that is taking a long time.

You must register your message filter by means of a call to Register before it can become active.

Requirements

Header: afxole.h

See Also

Reference

COleMessageFilter Class

Hierarchy Chart

COleMessageFilter::Register

AfxOleInit

CWinApp::InitInstance

Other Resources

COleMessageFilter Members