SetWindowRgn不能完成此功能,用MoveWindow吧!

解决方案 »

  1.   

    devouer(玩笑一生)  说得对,只不过我没有能够让这个柱状图显示。(程序代码如下)
    void CxxxDlg::OnButton1() 
    {
    // TODO: Add your control notification handler code here
    CRect rectPic;
    m_ctlPic.GetWindowRect (&rectPic);
    CPoint mpos;
    mpos=rectPic.TopLeft ();
    int high=rectPic.Height ()+200;
    int width=rectPic.Width ();
    m_ctlPic.MoveWindow (mpos.x,mpos.y,width,high);

    }点击这个按钮后,原来的柱状图没有了。错在哪里呢?我该如何实现这个功能呢?大虾们帮帮忙,急急急!