Deklaration: Declare Function CreateCaret Lib "user32" ( _ ByVal hwnd As Long, _ ByVal hBitmap As Long, _ ByVal nWidth As Long, _ ByVal nHeight As Long) As Long Beschreibung: Parameter:
Rückgabewert: Beispiel: 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 GetCaretBlinkTime Lib "user32" () As Long Private Declare Function SetCaretBlinkTime Lib "user32" ( _ ByVal wMSeconds As Long) As Long Private Declare Function ShowCaret Lib "user32" (ByVal hwnd As Long) As Long Dim OldBlinkTime As Long, Retval As Long ' Standard Blinkzeit für Carets ermitteln und neu setzen Private Sub Form_Load() OldBlinkTime = GetCaretBlinkTime Call SetCaretBlinkTime(200) ' Caretbitmap vorladen Picture1.AutoSize = True Picture1.Picture = LoadPicture(App.Path & "\NewCaret.bmp") End Sub ' Caret Blinkzeit wieder herstellen Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) Call SetCaretBlinkTime(OldBlinkTime) End Sub ' Caret erstellen und anzeigen Private Sub Text1_GotFocus() Retval = CreateCaret(Text1.hwnd, Picture1.Picture, 0&, 0&) Retval = ShowCaret(Text1.hwnd) End Sub Diese Seite wurde bereits 375 mal aufgerufen. |
Unser Dauerbrenner! ![]() 650 MB geballtes Wissen aus 6 Jahren vb@rchiv Online-Update-Funktion Entwickler-Vollversionen u.v.m. Buchempfehlung Tipp des Monats Dieter Otter Snapshot einer Webseite erstellen Mit dieser Funktion lässt sich ein Snapshot einer Webseite erstellen, die aktuell im WebBrowser-Control angezeigt wird. sevMail für VB/VBA ![]() Mails abrufen und senden - ganz easy :-) Mailversand mit ZIP-Funktion, Unterstützung von SMTP-AUTH (authentifizierter Mailversand), Abholen von Mails mit Vorschau, Mail-Parser zum Decodieren aller MIME-Parts und Anlagen, RTF2HTML-Funktion u.v.m. |
||||||||||||||||||
|
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein. |
|||||||||||||||||||


CreateCaret-Funktion

