用SetWindowPos。<br><br>The SetWindowPos function changes the size, position, and Z order of a child, pop-up, or top-level window. Child, pop-up, and top-level windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order. <br><br>BOOL SetWindowPos(<br><br> HWND hWnd, // handle of window<br> HWND hWndInsertAfter, // placement-order handle<br> int X, // horizontal position<br> int Y, // vertical position<br> int cx, // width<br> int cy, // height<br> UINT uFlags // window-positioning flags<br>