vb中如何才能有手型的光标?

前端之家收集整理的这篇文章主要介绍了vb中如何才能有手型的光标?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

各位搞过VB编程的同学肯定知道,vb默认是调不出手型光标(如网页上的链接光标)的,下面这个方法可以帮你做到。

Private Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long Private Sub Command1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button = 1 Then SetCursor 65581 End Sub Private Sub Command1_MouseMove(Button As Integer,Y As Single) If Button = 0 Then SetCursor 65581 End Sub

原文链接:https://www.f2er.com/vb/259066.html

猜你在找的VB相关文章