title: Help please: No BN_CLICKED for custom radio button (MFC, VC++6)
body: <p>I have derived a CButton class and created my own radion button control. Its all working nicely with the exception that I can't get the parent dialog to detect when the radio button it clicked.</p>
  
  <p>The parent dialog will detect the radio button click if I call CButton::OnLButtonUp() but the problem in doing that is that the framework also draws the radio button as well. I don't want to do that as I am drawing the radio button myself. </p>
  
  <p>Can somebody please tell me how to stop Windows/MFC framework from drawing the control in this case? If I don't call CButton::OnLButtonUp() then yeah, Windows/MFC won't draw the control but my parent dialog won't get a BN_CLICKED notification either. </p>
  
  <p>I know I could send a custom message back to my dialog but I don't want that - I want compatability with the BN_CLICKED message.</p>
  
  <p>As you will see below, I have also tried posting a message back to the owning dialog and this doesn't work either.</p>
  
  <pre><code>void CNCCheckBox::OnLButtonUp(UINT nFlags, CPoint point) 
  {
    if( m_Owner )
      m_Owner-&gt;PostMessage( BN_CLICKED, (WPARAM) IDC_RAD_1/*GetDlgCtrlID()*/, (LPARAM) this-&gt;m_hWnd );
    //CButton::OnLButtonUp(nFlags,point); // Can't use this!!
  }
  </code></pre>