5 implementations of PreFilterMessage
System.Windows.Forms (4)
System\Windows\Forms\Controls\Splitter\Splitter.SplitterMessageFilter.cs (1)
19public bool PreFilterMessage(ref Message m)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (1)
17public bool PreFilterMessage(ref Message m)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
520public bool PreFilterMessage(ref Message m)
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerMessageFilter.cs (1)
17bool IMessageFilter.PreFilterMessage(ref Message m)
WindowsFormsIntegration (1)
System\Windows\Integration\ApplicationInterop.cs (1)
261public bool PreFilterMessage(ref SWF.Message msg)
13 references to PreFilterMessage
System.Windows.Forms (1)
System\Windows\Forms\Application.ThreadContext.cs (1)
887bool filterMessage = filter.PreFilterMessage(ref message);
System.Windows.Forms.Tests (12)
ThreadContextTests.cs (12)
34mockContext.Setup(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny)) 43mockContext.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(1)); 54mockContext.Setup(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny)) 63mockContext.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(1)); 74mockContext2.Setup(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny)) 80mockContext3.Setup(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny)) 90mockContext2.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(1)); 91mockContext3.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(1)); 99mockContext2.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(2)); 100mockContext3.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(1)); 108mockContext2.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(3)); 109mockContext3.Verify(c => c.PreFilterMessage(ref It.Ref<Message>.IsAny), Times.Exactly(2));