AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

SetSystemCursor

The SetSystemCursor function replaces the contents of the system cursor specified by id with the contents of the cursor specified by hcur, and then destroys hcur. This function lets an application customize the system cursors.

VB4-32,5,6
Declare Function SetSystemCursor Lib "user32" (ByVal hcur As Long, ByVal id As Long) As Long

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

Parameter Information
· hcur
Handle to a cursor. The function replaces the contents of the system cursor specified by id with the contents of the cursor handled by hcur. Then the function destroys hcur by calling DestroyCursor(hCursor).

· id
A system cursor identifier. The function replaces the contents of this system cursor with the contents of the cursor handled by hcur.
Following is a list of system cursor identifiers:
OCR_NORMAL
normal arrow cursor
OCR_IBEAM
I-beam cursor
OCR_WAIT
larger hourglass cursor
OCR_CROSS
crosshair cursor
OCR_UP
up arrow cursor
OCR_SIZE
size cursor
OCR_ICON
icon cursor
OCR_SIZENWSE
NW to SE sizing cursor
OCR_SIZENESW
NE to SW sizing cursor
OCR_SIZEWE
horizontal sizing cursor
OCR_SIZENS
vertical sizing cursor
OCR_SIZEALL
horizontal and vertical sizing cursor
OCR_SIZENO
international no symbol cursor
OCR_APPSTARTING
smaller hourglass with arrow cursor

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Examples

Related Functions

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/