home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / OSLIB101.ZIP / SOURCE / FULLSCRN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-14  |  776 b   |  40 lines

  1. #include <extend.api>
  2.  
  3. #pragma optimize("lge", off)
  4.  
  5. /*  $DOC$
  6.  *  $FUNCNAME$
  7.  *      OL_WinFullScreen()
  8.  *  $CATEGORY$
  9.  *      Functions
  10.  *  $ONELINER$
  11.  *      Force a DOS window into full screen mode.
  12.  *  $SYNTAX$
  13.  *      OL_WinFullScreeen() --> NIL
  14.  *  $ARGUMENTS$
  15.  *      None.
  16.  *  $RETURNS$
  17.  *      Nothing.
  18.  *  $DESCRIPTION$
  19.  *      This function can be used to force your application into full
  20.  *      screen mode when running under MS Windows. It should work
  21.  *      correctly for Windows 3.x and Windows 95.
  22.  *  $EXAMPLES$
  23.  *      OL_WinFullScreen()
  24.  *      alert( "Boo!" )
  25.  *  $SEEALSO$
  26.  *
  27.  *  $END$
  28.  */
  29.  
  30. CLIPPER OL_WinFull( void )
  31. {
  32.     _asm {
  33.         Mov AX, 0x168B;
  34.         Mov BX, 0;
  35.         Int 0x2F;
  36.     }
  37.  
  38.     _ret();
  39. }
  40.