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



One thought on “VB窗口置顶的简单方法

发表评论

电子邮件地址不会被公开。 必填项已用*标注