title: How to pass a key press back to parent?
body: <p>I have a MFC dialog and in the PreTranslateMessage method:</p>
  
  <pre><code>BOOL CAssignHistoryDlg::PreTranslateMessage(MSG* pMsg)
  {
      BOOL    bNoDispatch, bDealtWith ;
  
      bDealtWith = FALSE ;
  
      if ( (pMsg-&gt;message == WM_KEYDOWN || pMsg-&gt;message == WM_KEYUP || 
          pMsg-&gt;message == WM_CHAR) 
          &amp;&amp; pMsg-&gt;wParam == VK_F5)
      {
          // Eat it.
          bNoDispatch = TRUE ;
          bDealtWith = TRUE ;
      }
  
      if (!bDealtWith)
          bNoDispatch = CSizingDialog::PreTranslateMessage(pMsg);
  
      return bNoDispatch ;
  }
  </code></pre>
  
  <p>This is a modeless dialogue inside a parent object (dialogue actually).</p>
  
  <p>How do I pass this VK_F5 keypress to the parent so that can process it too?</p>
  
  <p>Thank you.</p>