就是窗口永远置顶是吗?
是的话下面SetWindowPos就可以
BOOL SetWindowPos(
HWND hWnd,
HWND hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
UINT uFlags
);
hWndInsertAfter
[in] Handle to the window to precede the positioned window in the z-order. This parameter must be a window handle or one of the following values. Value Description
HWND_BOTTOM Places the window at the bottom of the z-order. If the hWnd parameter identifies a topmost window, the window loses its topmost status and is placed at the bottom of all other windows.
HWND_NOTOPMOST Places the window above all non-topmost windows (that is, behind all topmost windows). This flag has no effect if the window is already a non-topmost window. This value is not supported in Windows CE 1.0 and 1.01.
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. This value is not supported in Windows CE 1.0 and 1.01.