WindowPane.PreProcessMessage Method
Preprocesses the messages from navigation keys.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
声明
Protected Overridable Function PreProcessMessage ( _
ByRef m As Message _
) As Boolean
用法
Dim m As Message
Dim returnValue As Boolean
returnValue = Me.PreProcessMessage(m)
protected virtual bool PreProcessMessage(
ref Message m
)
protected:
virtual bool PreProcessMessage(
Message% m
)
abstract PreProcessMessage :
m:Message byref -> bool
override PreProcessMessage :
m:Message byref -> bool
protected function PreProcessMessage(
m : Message
) : boolean
Parameters
- m
Type: System.Windows.Forms.Message%
The Message.
Return Value
Type: System.Boolean
true if it was possible to get a control from the message's handle; otherwise, false.
Remarks
This method is called to preprocess keyboard messages before Visual Studio handles them. The default implementation calls the PreProcessControlMessage method. Implementers may override this if their window pane is not based on Windows Forms. Arguments and return values are the same as for Windows Forms; that is, return true if the message was handled, false if the default processing should occur.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.