在vb中 鼠标拖动时标准控件为什么会闪,怎么做才会好,谢谢
展开全部
Option Explicit
Private Declare Function GetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Sub Form_Load()
SetWindowLongA hWnd, -20, GetWindowLongA(hWnd, -20) Or 524288
SetLayeredWindowAttributes hWnd, vbBlack, 255, 2
End Sub
看它还会不会闪
Private Declare Function GetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLongA Lib "user32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Private Sub Form_Load()
SetWindowLongA hWnd, -20, GetWindowLongA(hWnd, -20) Or 524288
SetLayeredWindowAttributes hWnd, vbBlack, 255, 2
End Sub
看它还会不会闪
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询