step » 12.02.2005 (Сб) 11:55
КАК МНЕ СДЕЛАТЬ, ЧТО-бЫ ЧИСЛА ОТОБРАЖАЛИСЬ НОРМАЛЬНО?
Private Declare Function SelectClipPath Lib "gdi32" _
(ByVal hdc As Long, ByVal iMode As Long) As Long
Private Declare Function BeginPath Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function EndPath Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function PathToRegion Lib "gdi32" (ByVal hdc As Long) As Long
Private Declare Function SetWindowRgn Lib "user32" _
(ByVal hwnd As Long, ByVal hRgn As Long, _
ByVal bRedraw As Boolean) As Long
Private Const RGN_COPY = 5
Dim q As Single
Private Sub Timer1_Timer()
q = q + 1
On Error Resume Next
Dim hRgn As Long
Font.Name = "Times New Roman"
Font.Bold = True
Font.Size = 60
Width = TextWidth(q)
Height = TextHeight(q)
BeginPath hdc
CurrentX = 0
CurrentY = 0
Print q
EndPath hdc
hRgn = PathToRegion(hdc)
SetWindowRgn hwnd, hRgn, False
End Sub