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 9.774 mal aufgerufen. |
sevOutBar 4.0 Vertikale Menüleisten á la Outlook Erstellen von Outlook ähnlichen Benutzer- interfaces - mit beliebig vielen Gruppen und Symboleinträgen. Moderner OfficeXP-Style mit Farbverläufen, Balloon-Tips, u.v.m. Buchempfehlung Tipp des Monats April 2024 Skyfloy Chart von Microsoft und dazu noch gratis Tutorial für Microsoft Chart Controls für Microsoft .NET Framework 3.5 TOP Entwickler-Paket TOP-Preis!! Mit der Developer CD erhalten Sie insgesamt 24 Entwickler- komponenten und Windows-DLLs. Die Einzelkomponenten haben einen Gesamtwert von 1605.50 EUR... |
||||||||||||||||||
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. |