在运行中,改变按钮在窗体中的大小和位置的函数是什么?

解决方案 »

  1.   

    BOOL SetWindowPos(
      HWND hWnd,             // handle to window
      HWND hWndInsertAfter,  // placement-order handle
      int X,                 // horizontal position
      int Y,                 // vertical position
      int cx,                // width
      int cy,                // height
      UINT uFlags            // window-positioning options
    );
      

  2.   

    使用按钮从CWnd类继承下来的MoveWindow()函数即可
      

  3.   

    MoveWindow()简单,但功能有限
    SetWindowPos()参数多了一点,但功能强大
    比如可以设置窗口的placement-order 
    还可以防止移动时发送WM_WINDOWPOSCHANGING等消息
      

  4.   

    SetWindowPos() 改变大小MoveWindow()可以移动啊