title: why isn't my dialog box responding to OnRButtonDown(), in MFC?
body: <p>I'm trying to make one of my dialog boxes respond when right clicked on.
  I tried using a break point to see when the user clicks the dialog with a right mouse button, but it doesn't respond. </p>
  
  <p>I thought the codes below were all I needed to receive the information from windows, but i don't know what is wrong.</p>
  
  <p>Any help is greatly appreciated, thanks!</p>
  
  <p>my .h file:</p>
  
  <pre><code>afx_msg void OnRButtonDown(UINT, CPoint);
  </code></pre>
  
  <p>my cpp file:</p>
  
  <pre><code>void CGadgetAddedDialog::OnRButtonDown(UINT nFlags, CPoint point)
  {
  // THIS METHOD ISN'T RESPONDING TO MY Right Mouse Button
  
      CDialogEx::OnRButtonDown(nFlags, point);
  }
  
  BEGIN_MESSAGE_MAP(CGadgetAddedDialog, CDialogEx)
      ON_WM_ERASEBKGND()
      ON_WM_RBUTTONDOWN()
      ON_WM_CTLCOLOR()
  END_MESSAGE_MAP()
  </code></pre>