# FarPoint.Win.PopupWindowHelperMessageFilter.PreFilterMessage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_PopupWindowHelperMessageFilter_PreFilterMessage_" data-uid="FarPoint.Win.PopupWindowHelperMessageFilter.PreFilterMessage*">PreFilterMessage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_PopupWindowHelperMessageFilter_PreFilterMessage_" data-uid="FarPoint.Win.PopupWindowHelperMessageFilter.PreFilterMessage*"></a>
<h4 id="FarPoint_Win_PopupWindowHelperMessageFilter_PreFilterMessage_System_Windows_Forms_Message__" data-uid="FarPoint.Win.PopupWindowHelperMessageFilter.PreFilterMessage(System.Windows.Forms.Message@)">PreFilterMessage(ref Message)</h4>
<div class="markdown level1 summary"><p>Checks the message loop for mouse messages while the popup
window is displayed.  If one is detected the position is
checked to see if it is outside the form, and the owner
is notified if so.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool PreFilterMessage(ref Message m)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function PreFilterMessage(ByRef m As Message) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Message</span></td>
      <td><span class="parametername">m</span></td>
      <td><p>Windows Message about to be processed by the
message loop</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> to filter the message, <code>false</code> otherwise.
This implementation always returns <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
