本帖最后由 VisualEleven 于 2013-02-20 13:15:40 编辑

解决方案 »

  1.   

    CRect rc;
    GetClientRect(&rc);
    pDC->DrawText(text,-1,&rc,style);//这句使 文字 固定在 一个地方。我想 应该 还使用 CRect rc1= lp->rcItem;
    只是 每项 的 rcItem 应该是个 长方形 下面 可以 写 文字;
      

  2.   

    void CMyButton::Step()
    {
    m_cur++;
    if(m_cur >= m_num)
    m_cur = 0;
    //É趨´óС£¬Ô²ÐÄ£¨400£¬350£©
    point &pt = m_point[m_cur];
    double ver = pt.y - 350;
    int cx = 120 + (int)(ver / 3); 
    SetWindowPos(NULL,pt.x,pt.y,cx,cx,SWP_NOCOPYBITS);
        //SetWindowPos(NULL,pt.x,pt.y,cx,cx,SWP_NOSIZE|SWP_NOCOPYBITS|SWP_NOZORDER);
    //MoveWindow(NULL,pt.x,pt.y,cx,cx);}这是移动的算法。试试了好多的办法了,还是不行呀。求解呀。大哥。
      

  3.   

    Step()
    一次移动 几个?
    移动的 什么东西 CRect ?Picture ?CStatic ?
      

  4.   

    SetWindowPos(NULL,pt.x,pt.y,cx,cy,SWP_NOCOPYBITS);
    cy 要包含 文字 高度