Advertisement
7_2009-2012 Windows API Call/ Explanation #227237

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 சுருக்கம்: 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.

மூலக் குறியீடு
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
அசல் கருத்துகள் (3)
வேபேக் மெஷினிலிருந்து (Wayback Machine) மீட்டெடுக்கப்பட்டது