Condividi tramite


IOleComponent.FContinueMessageLoop(UInt32, IntPtr, MSG[]) Method

Definition

Called during each iteration of a message loop.

public:
 int FContinueMessageLoop(System::UInt32 uReason, IntPtr pvLoopData, cli::array <Microsoft::VisualStudio::OLE::Interop::MSG> ^ pMsgPeeked);
public int FContinueMessageLoop (uint uReason, IntPtr pvLoopData, Microsoft.VisualStudio.OLE.Interop.MSG[] pMsgPeeked);
abstract member FContinueMessageLoop : uint32 * nativeint * Microsoft.VisualStudio.OLE.Interop.MSG[] -> int
Public Function FContinueMessageLoop (uReason As UInteger, pvLoopData As IntPtr, pMsgPeeked As MSG()) As Integer

Parameters

uReason
UInt32

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

pvLoopData
IntPtr

nativeint

The component data that was sent to FPushMessageLoop(UInt32, UInt32, IntPtr).

pMsgPeeked
MSG[]

The peeked message (from PeekMessage).

Returns

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.

Remarks

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.

Applies to