home *** CD-ROM | disk | FTP | other *** search
- /**
- *
- * Name mohide -- Hide or show mouse cursor.
- *
- * Synopsis ercode = mohide(option);
- *
- * int ercode Error return code:
- * MO_OK if successful;
- * MO_BAD_OPT if option not recognized;
- * MO_ABSENT if mouse not found;
- *
- * int option Action to perform:
- * MO_HIDE to hide mouse cursor,
- * MO_SHOW to show cursor.
- *
- * Description This function hides or shows the mouse cursor.
- *
- * Returns ercode Error return code:
- * MO_OK if successful;
- * MO_BAD_OPT if option not recognized;
- * MO_ABSENT if mouse not found.
- * b_mouse Number of mouse buttons (0 if no driver).
- *
- * Version 6.00 (C)Copyright Blaise Computing Inc. 1989
- *
- **/
-
- #include <bmouse.h>
-
- int far mohide(option)
- int option;
- {
- DOSREG regs;
-
- switch (option)
- {
- case MO_SHOW: regs.ax = 1; break;
- case MO_HIDE: regs.ax = 2; break;
- default: return MO_BAD_OPT;
- }
-
- return mogate(®s,®s);
- }