title: Tell windows to process all but one message
body: <p>I have a function triggered by a message(WM_ONDATA defined by me) the function will execute this code :</p>
  
  <pre><code>MSG msg;
  while(::PeekMessage(&amp;msg, NULL, 0, 0, PM_NOREMOVE)) 
  {
  
      if( !AfxGetApp()-&gt;PumpMessage() )
      { 
          ::PostQuitMessage(0); 
          return 0; 
      } 
  }
  return 1;
  </code></pre>
  
  <p>The problem is that there could be on the message queue another message that could trigger the function.</p>
  
  <p>I'm wondering if I can make it process all the message but WM_ONDATA?</p>