當前位置:編程學習大全網 - 網站源碼 - VB如何繪制鼠標拖動軌跡

VB如何繪制鼠標拖動軌跡

Dim?xx?As?Double,?yy?As?Double

Private?Sub?Form_MouseMove(Button?As?Integer,?Shift?As?Integer,?X?As?Single,?Y?As?Single)

If?xx?=?0?And?yy?=?0?Then

xx?=?X:?yy?=?Y

Else

Form1.Line?(xx,?yy)-(X,?Y),?1

End?If

xx?=?X:?yy?=?Y

End?Sub

我調試成功的例子。

  • 上一篇:熊盒子軟件出錯
  • 下一篇:急求!使用YII時出現CDbConnection failed to open the DB connection: could not find driver錯誤!
  • copyright 2024編程學習大全網