home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 4.ddi / TOOLS.4 / TCTSRC1.EXE / MOHIDE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  978 b   |  44 lines

  1. /**
  2. *
  3. * Name        mohide -- Hide or show mouse cursor.
  4. *
  5. * Synopsis    ercode = mohide(option);
  6. *
  7. *        int ercode      Error return code:
  8. *                  MO_OK if successful;
  9. *                  MO_BAD_OPT if option not recognized;
  10. *                  MO_ABSENT if mouse not found;
  11. *
  12. *        int option      Action to perform:
  13. *                  MO_HIDE to hide mouse cursor,
  14. *                  MO_SHOW to show cursor.
  15. *
  16. * Description    This function hides or shows the mouse cursor.
  17. *
  18. * Returns    ercode          Error return code:
  19. *                  MO_OK if successful;
  20. *                  MO_BAD_OPT if option not recognized;
  21. *                  MO_ABSENT if mouse not found.
  22. *        b_mouse       Number of mouse buttons (0 if no driver).
  23. *
  24. * Version    6.00 (C)Copyright Blaise Computing Inc.  1989
  25. *
  26. **/
  27.  
  28. #include <bmouse.h>
  29.  
  30. int far mohide(option)
  31. int option;
  32. {
  33.     DOSREG regs;
  34.  
  35.     switch (option)
  36.     {
  37.     case MO_SHOW:  regs.ax = 1;         break;
  38.     case MO_HIDE:  regs.ax = 2;         break;
  39.     default:       return MO_BAD_OPT;
  40.     }
  41.  
  42.     return mogate(®s,®s);
  43. }
  44.