DialogContainerWithToolbar.IMessageFilter.PreFilterMessage Method
Filters mouse messages before they are dispatched.
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
'Déclaration
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Private Function PreFilterMessage ( _
ByRef m As Message _
) As Boolean Implements IMessageFilter.PreFilterMessage
'Utilisation
Dim instance As DialogContainerWithToolbar
Dim m As Message
Dim returnValue As Boolean
returnValue = CType(instance, IMessageFilter).PreFilterMessage(m)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
bool IMessageFilter.PreFilterMessage(
ref Message m
)
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)]
private:
virtual bool PreFilterMessage(
Message% m
) sealed = IMessageFilter::PreFilterMessage
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
private abstract PreFilterMessage :
m:Message byref -> bool
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>]
private override PreFilterMessage :
m:Message byref -> bool
JScript does not support explicit interface implementations.
Parameters
- m
Type: System.Windows.Forms.Message%
A message from the toolbar.
Return Value
Type: System.Boolean
true if the message was filtered and not dispatched, false if it was dispatched.
Implements
IMessageFilter.PreFilterMessage(Message%)
Remarks
Makes a call to ProcessMouseActivationModal to process mouse messages.
.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.
See Also
Reference
DialogContainerWithToolbar Class