ش | ی | د | س | چ | پ | ج |
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
تمام منابع خارجی
Dim px As POINTAPI
GetCursorPos px
'ClientToScreen hwnd, px
MoveToEx hdc, 120, 30, px
LineTo hdc, 140, 30
MoveToEx hdc, 120, 30, px
LineTo hdc, 135, 15
' Quarter
MoveToEx hdc, 120, 30, px
LineTo hdc, 134, 44
MoveToEx hdc, 120, 30, px
LineTo hdc, 120, 50
' Quarter
MoveToEx hdc, 120, 30, px
LineTo hdc, 105, 44
MoveToEx hdc, 120, 30, px
LineTo hdc, 120, 10
' Quarter
MoveToEx hdc, 120, 30, px
LineTo hdc, 105, 14
MoveToEx hdc, 120, 30, px
LineTo hdc, 100, 30
Rotate
using WM_TIMER
Dim tt As RECT
Static Deg
Deg = Deg + 5
If Deg > 360 Then Deg = 0
Dim xl, yt
xl = 120: yt = 30
tt.Left = 99: tt.Top = 5: tt.right = 141: tt.bottom = 55
(FillRect hdc, tt, GetSysColorBrush(15
طول خط 20
در ربع اول If 0 < Deg < 90 Then ' Quarter
Newx = xl + Sin(Deg * Sin1) * 20
Newy = yt - Cos(Deg * Sin1) * 20
End If
در ربع دوم If 90 < Deg < 180 Then
Newx = xl + Cos(Deg * Sin1) * 20
Newy = yt + Sin(Deg * Sin1) * 20
End If
در ربع سوم If 180 < Deg < 270 Then
Newx = xl - Sin(Deg * Sin1) * 20
Newy = yt + Cos(Deg * Sin1) * 20
End If
در ربع چهارم If 270 < Deg < 360 Then
Newx = xl - Cos(Deg * Sin1) * 20
Newy = yt - Sin(Deg * Sin1) * 20
End If
MoveToEx hdc, 120, 30, px
LineTo hdc, Newx, Newy
xl = 120: yt = 30
tt.Left = 100: tt.Top = 5: tt.right = 140: tt.bottom = 55
(FillRect hdc, tt, GetSysColorBrush(15
Arc hdc, 100, 10, 140, 50, 0, 0, 0, 0
SelectObject hdc, HoldPen
Arc hdc, 115, 25, 125, 35, 0, 0, 0, 0
SelectObject hdc, HoldPen1
Newx = xl + Sin(Deg * Sin1) * 16
Newy = yt - Cos(Deg * Sin1) * 16
MoveToEx hdc, 120, 30, px
LineTo hdc, Newx, Newy
Deg = Deg + 10
DeleteObject HoldPen
DeleteObject HoldPen1