Advertisement
ASP_Volume2 Windows API Call/ Explanation #33207

Get the "Real" Hand Cursor

This small piece of code will set the cursor to the hand cursor that is shown when you hover above a hyperlink. I know you can use a .RES file to load the cursor, but the cursor can be changed in the Mouse control panel, and a .RES cursor will not reflect the changes. NOTE: This is not all my code. I found the API call on PSC (had to do quite a bit of searching), and put together a little Subroutine to make it easier to do. The original source is here: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=31572&lngWId=1

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Public Sub SetHandCur(Hand As Boolean)
  If Hand = True Then
    SetCursor LoadCursor(0, IDC_HAND)
  Else
    SetCursor LoadCursor(0, IDC_ARROW)
  End If
End Sub
Original Comments (3)
Recovered from Wayback Machine