欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

windowontop.bas

该程序是用VC源代码编写的
BAS
字号:

Private 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      

Const HWND_TOPMOST = -1
Const SWP_NOMOVE = &H2  
Const SWP_NOSIZE = &H1


Public Function PutWindowOnTop (pFrm as Form)
  Dim lngWindowPosition As Long
  
  LngWindowPosition = SetWindowPos(pFrm.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE)

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -