Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>_gtgetcursor()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson