title: How to catch the OLE control event in MFC app? fired by ActiveX control which is created
body: <p>I dynamically create some ActiveX controls in my MFC app. I want to handle their event such as click, dblclick. But I don't know what kind of message should I catch where to put the code to catch them.
  I can add the event handler if I put the these control on the dialog window as I design the GUI. The code automatically added by MFC is below:</p>
  
  <pre><code>BEGIN_EVENTSINK_MAP(CButtonMsgDlg, CDialog)
      ON_EVENT(CButtonMsgDlg, IDC_CWBOOLEAN1, DISPID_DBLCLICK,   CButtonMsgDlg::DblClickCwboolean1, VTS_NONE)
  END_EVENTSINK_MAP()
  
  void CButtonMsgDlg::DblClickCwboolean1()
  {
     // TODO: Add your message handler code here
  }
  </code></pre>