title: How to change ActiveX control's property programmatically with MFC?
body: <p>I added a activex control to my MFC project, I don't use the dialog editor to add the control, I just used MFC to generate a wrapper class for the control, and call the "create" member in the wrapper class to create the control  programmatically, the code is more or less like:</p>
  
  <pre><code>class CMyView
  {
  
  CCalendar m_ctl;
  //other members.....
  }
  int CMyView::OnCreate
  {
    m_ctl.create("",WS_CHILD|WS_VISIBLE,this,CRect(50,50,100,100));
    //.....
  }
  </code></pre>
  
  <p>But I found that the wrapper class provide no way for me to change the control's property, so if I want to change the control's property  programmatically, what should I do? Can I achieve this through a wrapper class? Or can it be done  programmatically at all?  Or is it only can be done via a dialog editor? Thank you.</p>