[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _gtGetCursor()
 Get the current cursor shape
------------------------------------------------------------------------------
 C Prototype

     #include "gt.api"
     ERRCODE _gtGetCursor(
                           USHORTP uipCursorShape
                         )

 Arguments

     uipCursorShape receives a number indicating the shape of the cursor.

 Returns

     _gtGetCursor() returns zero if successful.  Any other value indicates an
     error.

 Description

     _gtGetCursor() saves the current cursor shape as a numeric value,
     uipCursorShape.  You can later use the value referenced by
     uipCursorShape with _gtSetCursor() to return the cursor to its prior
     shape.

 Examples

     .  This example illustrates how to use _gtGetCursor() and
        _gtSetCursor() to save the current cursor shape, change it, and
        restore it to its original shape:

        #include "gt.api"
        .
        .
        .

           USHORT uiSavCursor;

           _gtGetCursor( &uiSavCursor );     // Save cursor shape
           _gtSetCursor( SC_SPECIAL1 );      // Change cursor to a block
        .
        .
        .
           _gtSetCursor( uiSavCursor );      // Restore cursor shape
        }

 Files  Library is CLIPPER.LIB, header file is Gt.api.


See Also: _gtGetPos() _gtSetCursor() _gtSetPos()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson