次の方法で共有


ViewFilter.HandlePostExec Method

Definition

This method hooks up HandleSmartIndent and Source.OnCommand.

public:
 virtual void HandlePostExec(Guid % guidCmdGroup, System::UInt32 nCmdId, System::UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut, bool bufferWasChanged);
public virtual void HandlePostExec (ref Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut, bool bufferWasChanged);
abstract member HandlePostExec : Guid * uint32 * uint32 * nativeint * nativeint * bool -> unit
override this.HandlePostExec : Guid * uint32 * uint32 * nativeint * nativeint * bool -> unit
Public Overridable Sub HandlePostExec (ByRef guidCmdGroup As Guid, nCmdId As UInteger, nCmdexecopt As UInteger, pvaIn As IntPtr, pvaOut As IntPtr, bufferWasChanged As Boolean)

Parameters

guidCmdGroup
Guid

[in] The GUID of the command group.

nCmdId
UInt32

[in] The specific ID of the command from the command group. This identifies the command to execute.

nCmdexecopt
UInt32

[in] Additional parameters for the command (packed into a 32-bit value).

pvaIn
IntPtr

nativeint

[in] A pointer to a Variant object holding any parameters required by the command. This can be a null value indicating there are no additional parameters.

pvaOut
IntPtr

nativeint

[in, out] A pointer to a Variant object to hold the result of the command, if any.

bufferWasChanged
Boolean

[in] The GUID of the command group.

Remarks

This method is called after a command has been processed. This method typically handles events such as smart indenting, reformatting of code, and brace matching.

The base method obtains the expansion provider and calls the HandlePostExec method on the ExpansionProvider object if the object exists. If the expansion provider handles the call then this method does nothing else. Otherwise, if the RETURN command is given and a completion set is active and the IndentStyle property is set to Smart, then call the HandleSmartIndent method. Otherwise, if any other typed key command is given, pass the command to the OnCommand method in the Source object that was obtained from the CodeWindowManager object in the ViewFilter constructor.

Applies to