Changes the position and dimensions. 

解决方案 »

  1.   

    你要是能看得懂E文的话,不妨一看!
    CWnd::MoveWindow
    void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );void MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );ParametersxSpecifies the new position of the left side of the CWnd.ySpecifies the new position of the top of the CWnd.nWidthSpecifies the new width of the CWnd.nHeightSpecifies the new height of the CWnd.bRepaintSpecifies whether CWnd is to be repainted. If TRUE, CWnd receives aWM_PAINT message in its OnPaint message handler as usual. If this parameter is FALSE, no repainting of any kind occurs. This applies to the client area, to the nonclient area (including the title and scroll bars), and to any part of the parent window uncovered as a result of Cwnd’s move. When this parameter is FALSE, the application must explicitly invalidate or redraw any parts of CWnd and parent window that must be redrawn.lpRectThe CRect object or RECT structure that specifies the new size and position.ResChanges the position and dimensions. For a top-level CWnd object, the x and y parameters are relative to the upper-left corner of the screen. For a child CWnd object, they are relative to the upper-left corner of the parent window’s client area. The MoveWindow function sends the WM_GETMINMAXINFO message. Handling this message gives CWnd the opportunity to modify the default values for the largest and smallest possible windows. If the parameters to the MoveWindow member function exceed these values, the values can be replaced by the minimum or maximum values in the WM_GETMINMAXINFO handler.CWnd Overview |  Class Members |  Hierarchy 
      

  2.   

    CWnd::MoveWindow
    void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );void MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );ParametersxSpecifies the new position of the left side of the CWnd.ySpecifies the new position of the top of the CWnd.nWidthSpecifies the new width of the CWnd.nHeightSpecifies the new height of the CWnd.bRepaintSpecifies whether CWnd is to be repainted. If TRUE, CWnd receives aWM_PAINT message in its OnPaint message handler as usual. If this parameter is FALSE, no repainting of any kind occurs. This applies to the client area, to the nonclient area (including the title and scroll bars), and to any part of the parent window uncovered as a result of Cwnd’s move. When this parameter is FALSE, the application must explicitly invalidate or redraw any parts of CWnd and parent window that must be redrawn.lpRectThe CRect object or RECT structure that specifies the new size and position.ResChanges the position and dimensions. For a top-level CWnd object, the x and y parameters are relative to the upper-left corner of the screen. For a child CWnd object, they are relative to the upper-left corner of the parent window’s client area. The MoveWindow function sends the WM_GETMINMAXINFO message. Handling this message gives CWnd the opportunity to modify the default values for the largest and smallest possible windows. If the parameters to the MoveWindow member function exceed these values, the values can be replaced by the minimum or maximum values in the WM_GETMINMAXINFO handler.CWnd Overview |  Class Members |  Hierarchy 
      

  3.   

    建议:将msdn全部贴出来!:)