HWND hWnd, // handle of window
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning flags
);
设置为HWND_TOP Places the window at the top of the Z order.
试试
注意不是HWND_TOPMOST Places the window above all non-topmost windows. The window maintains its topmost position even when it is deactivated.