声明:
Function Long SetWindowPos(Long hwnd,Long order,Long x,Long y,Long cx,Long cy,Long uflag) Library ″user32″
HWND hWnd, // handle to window
long order, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
当uFlags=3时保持窗口的大小位置不变。order= -1 最上层。
所以,调用方式:
SetWindowPos(Handle(This),-1,0,0,0,0,3)