Hello,
I'm trying to change the cursor to the hand symbol on the header of the iGrid active-X control in an MS-Access 2010 database.
It works fine for the grid itself using the MouseMove event of the control. But not for the headers. How can I change the mouse cursor when hovering over the header?
Hope there is a solution?
My Code:
Private Const IDC_HAND = 32649&
Private Declare Function LoadCursorLong Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As Long) As Long
Private Declare Function SetCursor Lib "user32" (ByVal hCursor As Long) As Long
Private Function SetMouseCursor(CursorType As Long)
Dim hCursor As Long
hCursor = LoadCursorLong(0&, CursorType)
hCursor = SetCursor(hCursor)
End Function
Private Sub IG_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single, ByVal lRow As Long, ByVal lCol As Long)
If IG.CellIcon(lRow, lCol) > 0 Then SetMouseCursor IDC_HAND
End Sub
This shows the hand symbol whenever there is an icon in the cell.
How to do it for the header?
Best regards,
Emphyrio
Edited by user
2019-04-26T14:39:30Z
|
Reason: Not specified