vb6代码之如何实现窗口置顶
新建立类模块:
Option Explicit文章源自公式库网-https://www.gongshiku.com/html/202008/vb6daimazhiruheshixianchuangkouzhiding.html
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)文章源自公式库网-https://www.gongshiku.com/html/202008/vb6daimazhiruheshixianchuangkouzhiding.html
窗口代码:
Dim rtn
'让窗口在顶层
rtn = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
'取消窗口在顶层
'rtn = SetWindowPos(F_V.hwnd, -2, 0, 0, 0, 0, 3)文章源自公式库网-https://www.gongshiku.com/html/202008/vb6daimazhiruheshixianchuangkouzhiding.html
文章源自公式库网-https://www.gongshiku.com/html/202008/vb6daimazhiruheshixianchuangkouzhiding.html
运营不易,
感谢支持!

我的微信
我的微信公众号
我的微信公众号扫一扫

我的公众号