# Re: 如何让Form显示时能永远显示在最上层?

Posted by CK on March 02, 1999 at 13:25:13:

In Reply to: 如何让Form显示时能永远显示在最上层? posted by 默默 on March 01, 1999 at 17:39:18:

: As Title..谢谢

Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

最上层显示
Call SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
恢复
Call SetWindowPos(Me.hwnd, -2, 0, 0, 0, 0, 3)

Follow Ups: