//GetClientRect()
//DeflateRect()
//OffsetRect()
来看看这段代码什么意思~
bool CAnimateBtn::Open(UINT nID)//CAnimateBtn是一个CButton的子类。
{ TRACE("Open id called\n");
  if (!::IsWindow(m_ctrl))
  {
    CRect arect;
    GetClientRect(&arect);
    arect.DeflateRect(8,(int)(arect.Height()/5.0));
    arect.OffsetRect(0,(int)(-arect.Height()/5.0));
    m_ctrl.Create(WS_CHILD | WS_VISIBLE | ACS_TRANSPARENT |ACS_CENTER ,arect,this,1);
  }
  //if you change the Create call to include ACS_AUTOPLAY, then do not set flag to TRUE
  flag=TRUE;
  return m_ctrl.Open(nID);
}