IOleComponent::FContinueMessageLoop Method (UInt32, IntPtr, array<MSG>^)

 

Called during each iteration of a message loop.

Namespace:   Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

int FContinueMessageLoop(
	unsigned int uReason,
	IntPtr pvLoopData,
	array<MSG>^ pMsgPeeked
)

Parameters

uReason
Type: System::UInt32

The T:Microsoft.VisualStudio.OLE.Interop.OLELOOP representing the reason.

pMsgPeeked
Type: array<Microsoft.VisualStudio.OLE.Interop::MSG>^

The peeked message (from PeekMessage).

pvLoopData
Type: System::IntPtr

The component data that was sent to FPushMessageLoop.

Return Value

Type: System::Int32

true if the message loop should continue, false otherwise. If false is returned, the component manager terminates the loop without removing pMsgPeeked from the queue.

This method is called after peeking at the next message in the queue (via PeekMessage) but before the message is removed from the queue. The peeked message is passed in the pMsgPeeked parameter (null if no message is in the queue). This method may be additionally called when the next message has already been removed from the queue, in which case pMsgPeeked is passed as null.

Return to top
Show: