1.

How Do I Change The Type Of Cursor And Hide A Cursor?

Answer»

We can change the cursor type by USING function _setcursortype ( ). This function can change the cursor type to solid cursor and can even hide a cursor. Following CODE shows how to change the cursor type and hide cursor.

#include

MAIN( )

{

/* Hide cursor */

_setcursortype ( _NOCURSOR ) ;

/* Change cursor to a solid cursor */

_setcursortype ( _SOLIDCURSOR ) ;

/* Change back to the normal cursor */

_setcursortype ( _NORMALCURSOR ) ;

}

We can change the cursor type by using function _setcursortype ( ). This function can change the cursor type to solid cursor and can even hide a cursor. Following code shows how to change the cursor type and hide cursor.

#include

main( )

{

/* Hide cursor */

_setcursortype ( _NOCURSOR ) ;

/* Change cursor to a solid cursor */

_setcursortype ( _SOLIDCURSOR ) ;

/* Change back to the normal cursor */

_setcursortype ( _NORMALCURSOR ) ;

}



Discussion

No Comment Found