用CStatic的什么函数? 
获得位置是用GetClientRect么?
(我对VC还不熟)
谢谢!!!

解决方案 »

  1.   

    CWnd *pWnd=GetDlgItem(ID_STATIC);
    pWnd->movewindow()
      

  2.   

    CWnd *pWnd=GetDlgItem(ID_STATIC);
    pWnd->movewindow()
    正确!!!!!!!!
      

  3.   

    CRect rect
    CWnd *pWnd;
    pWnd->GetWindowRect(&rect);
    rect=newrect;
    pWnd->MoveWindow(&newrect,true);
      

  4.   

    CRect rect
    CWnd *pWnd=GetDlgItem(ID_STATIC);
    pWnd->GetWindowRect(&rect);
    rect=newrect;
    pWnd->MoveWindow(&newrect,true);
      

  5.   

    谢谢!!!
    不过好象MoveWindow前需要ScreenToClient(&rect)吧