请教一下,我在程序中用CreateStatic(this, 1, 2)分割了窗口,然后又用CreateView,如果我想在程序中把左侧子窗口隐藏了(宽度设为0),或者恢复回来,请问怎么实现。

解决方案 »

  1.   

    ??????? 是哦 同意 月MMMoveWindow(
      HWND hWnd,      // handle to window
      int X,          // horizontal position
      int Y,          // vertical position
      int nWidth,     // width // HERE...
      int nHeight,    // height
      BOOL bRepaint   // repaint flag
    );
      

  2.   

    用这个函数比较好!
    MoveWindow(
      HWND hWnd,      // handle to window
      int X,          // horizontal position
      int Y,          // vertical position
      int nWidth,     // width // HERE...
      int nHeight,    // height
      BOOL bRepaint   // repaint flag
    );
      

  3.   

    MoveWindow(
      HWND hWnd,      // handle to window
      int X,          // horizontal position
      int Y,          // vertical position
      int nWidth,     // width // HERE...
      int nHeight,    // height
      BOOL bRepaint   // repaint flag
    );SetWindowPos
      

  4.   

    SetWindowPos()
    MoveWindow()
    都可以
      

  5.   

    MoveWindow();
    SetWindowPos();
    The both can be!!
      

  6.   

    得到左侧窗口的视图指针,然后调用ShowWindow函数
    leftview->ShowWindow(SW_HIDE);//隐藏
    leftview->ShowWindow(SW_RESTORE);//还原
    rightview->ShowWindow(SW_MAXIMAZE);//
    ---------------------------------------------------
    移动窗口和改变位置可以使用:
    MoveWindow();
    SetWindowPos();
      

  7.   

    MoveWindow(
      HWND hWnd,      // handle to window
      int X,          // horizontal position
      int Y,          // vertical position
      int nWidth,     // width // HERE...
      int nHeight,    // height
      BOOL bRepaint   // repaint flag
    );