请指教!

解决方案 »

  1.   

    通过MoveWindow可以指明新的坐标以及新的大小:
    void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );
      

  2.   

    MoveWindow(0,0,800,600)窗口调至800X600
      

  3.   

    BOOL MoveWindow(          HWND hWnd,
        int X,
        int Y,
        int nWidth,
        int nHeight,
        BOOL bRepaint
    );BOOL SetWindowPos(          HWND hWnd,
        HWND hWndInsertAfter,
        int X,
        int Y,
        int cx,
        int cy,
        UINT uFlags
    );
      

  4.   

    调用
    MoveWindow(0, 0, GetSystemMetrics(SM_CXFULLSCREEN), GetSystemMetrics(SM_CYFULLSCREEN) );