📄 alawaysontop.bas
字号:
Attribute VB_Name = "AlawaysOnTop"
Public 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
Global Const HWND_TOPMOST = -1
Global Const SWP_NOMOVE = &H2
Global Const SWP_NOSIZE = &H1
Global Const SWP_SHOWWINDOW = &H40
'here is the usage:
'make a form on top
'x = SetWindowPos(formname.hwnd, -1, 0, 0, 0, 0, 3)
'stop make a form on top
'x = SetWindowPos(formname.hwnd, -2, 0, 0, 0, 0, 3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -