VB窗口置顶的简单方法

先在通用区放上以下代码:
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)
用法:
SetwindowPos Me.hwnd, -1, 0, 0, 0, 0, 3



Comments are closed.