Set Me.MouseIcon = LoadResPicture("HAND_CUR", vbResCursor)
Me.MousePointer = vbCustom
7. Add three more color cursors in this same way. Note that these are numbered 101 - 104 in the editor
Private Declare Function LoadCursorFromFile Lib "user32.dll" Alias "LoadCursorFromFileA" (ByVal lpFileName As String) As Long
Private Declare Function SetSystemCursor Lib "user32.dll" (ByVal hcur As Long, ByVal id As Long) As Long
Private Const OCR_UP As Long = 32516
Private Sub Command1_Click()
SetSystemCursor LoadCursorFromFile(App.Path & "\104.cur"), OCR_UP
End Sub
Mleha писал(а):7. Add three more color cursors in this same way.
Добавить курсоры с более богатой палитрой любыми путями! ГЫ
MSDN писал(а):Visual Basic does not provide any support for color cursors and, therefore, a color cursor cannot be used while running in the Visual Basic IDE. However, a color cursor can be used in compiled Visual Basic applications.
MSDN писал(а):Visual Basic does not provide any support for color cursors and, therefore, a color cursor cannot be used while running in the Visual Basic IDE. However, a color cursor can be used in compiled Visual Basic applications.
Mleha писал(а):Главное чтоб он был 32 битный, а API для этого в VB, наверное, единственный путь. ИМХО
MSDN писал(а):Visual Basic does not provide any support for color cursors and, therefore, a color cursor cannot be used while running in the Visual Basic IDE. However, a color cursor can be used in compiled Visual Basic applications.
Mleha писал(а):Даже без API. ГЫ
Сейчас этот форум просматривают: Majestic-12 [Bot], Yandex-бот и гости: 37