需要的函数声明: Option Explicit Private Declare Function GetCaretBlinkTime Lib "user32" _ () As Long Private Declare Function SetCaretBlinkTime Lib "user32" _ (ByVal wMSeconds As Long) As Long Private Declare Function GetCaretPos Lib "user32" _ (lpPoint As POINTAPI) As Long Private Declare Function SetCaretPos Lib "user32" _ (ByVal X As Long, ByVal Y As Long) As Long Private Declare Function DestroyCaret Lib "user32" () _ As Long Private Declare Function CreateCaret Lib "user32" _ (ByVal hwnd As Long, ByVal hBitmap As Long, _ ByVal nWidth As Long, ByVal nHeight As Long) _ As Long Private Declare Function ShowCaret Lib "user32" (ByVal _ hwnd As Long) As Long Private Type POINTAPI X As Long Y As Long End Type
Option Explicit
Private Declare Function GetCaretBlinkTime Lib "user32" _
() As Long
Private Declare Function SetCaretBlinkTime Lib "user32" _
(ByVal wMSeconds As Long) As Long
Private Declare Function GetCaretPos Lib "user32" _
(lpPoint As POINTAPI) As Long
Private Declare Function SetCaretPos Lib "user32" _
(ByVal X As Long, ByVal Y As Long) As Long
Private Declare Function DestroyCaret Lib "user32" () _
As Long
Private Declare Function CreateCaret Lib "user32" _
(ByVal hwnd As Long, ByVal hBitmap As Long, _
ByVal nWidth As Long, ByVal nHeight As Long) _
As Long
Private Declare Function ShowCaret Lib "user32" (ByVal _
hwnd As Long) As Long
Private Type POINTAPI
X As Long
Y As Long
End Type