13 Cursor API Function
SetSystemCursor changes one of the cursors that Windows provides. For example, this function can change the cursor used to represent the default arrow cursor. Be careful using this function, since this redefines the default cursors instead of simply setting the current look of the cursor. The functi...
Hits: 7657 Rating: (3.22) votes 711
SetCursorPos sets the position of the mouse cursor. If you try to set the coordinates outside of the range of the display (for example, to (700,40) on a 640x480 display) or outside the confining rectangle (set by ClipCursor), the cursor will just go to the edge of the screen or the rectangle. The fu...
Hits: 12825 Rating: (2.96) votes 1853
LoadCursorFromFile loads a cursor from a cursor file. The cursor file can contain either a regular cursor (*.cur) or an animated cursor (*.ani). If successful, the function returns a cursor handle to the newly loaded cursor. If unsuccessful, the function returns 0.
Hits: 5860 Rating: (2.24) votes 1280
GetClipCursor finds the current confinement rectangle of the mouse cursor. The mouse cursor is confined by using ClipCursor.
The cursor is confined inside this rectangle -- even SetCursorPos cannot free it. If there is no apparent confinement rectangle, it is actually the size of the screen. The co...
Hits: 4250 Rating: (2.22) votes 1167
DestroyCursor destroys a cursor and deletes its handle. The cursor must have been created using the CreateCursor functions.
Do not use this function with a cursor handle obtained in any other manner! The function returns 1 if successful, or 0 if an error occured. ...
Hits: 3222 Rating: (3.01) votes 964
GetCursorPos reads the current position of the mouse cursor. The x and y coordinates of the cursor (relative to the screen) are put into the variable passed as lpPoint. The function returns 0 if an error occured or 1 if it is successful.
Hits: 11849 Rating: (2.36) votes 1283
GetCursor finds the handle to the mouse cursor currently in use. This is the cursor that is being used to represent the mouse pointer on the screen. The function returns a handle to the cursor picture if successful, or returns 0 if an error occurs.
Hits: 5847 Rating: (2.55) votes 974
SetFilePointer moves the position of the file pointer of a currently open file. The file pointer identifies the position in a synchronous (non-overlapped) file where reading from and writing to the file begins. The file must have been opened with at least either read-level or write-level access (or ...
Hits: 6525 Rating: (2.93) votes 1299
SetCursor sets the image used to represent the mouse cursor. The new cursor can be any valid cursor that has either been created or loaded. If successful, the function returns a handle to the old cursor image. If unsuccessful, the function returns 0.
Hits: 13733 Rating: (2.74) votes 1088
ShowCursor either shows or hides the mouse cursor. This is not done directly, but rather by incrementing or decrementing a counter. Each function call raises or lowers the counter by 1. If the counter is negative, the cursor is invisible. It if it non-negative, the cursor is visible. The function re...
Hits: 5113 Rating: (2.73) votes 935
LoadCursor loads a cursor from either a currently running program's cursor resources or Windows's cursor resources. The cursor can be referenced either by its resource name or by its numeric resource ID number. If successful, the function returns a handle to the loaded cursor. If unsuccessful, the f...
Hits: 9224 Rating: (3.21) votes 2709
The CreateCursor function creates a cursor having the specified size, bit patterns, and hot spot.
Hits: 3553 Rating: (2.99) votes 428
ClipCursor confines the mouse cursor to a rectangular area of the screen. If the user tries to move the cursor outside of this bounding region or a call to SetCursorPos tells it to go outside the box, the cursor will immediately returned to the area. There is no way to get it out. This bounding effe...
Hits: 4888 Rating: (1.72) votes 776
Records 1 to 13 of 13