/*     EXAMPLE 7:  VIRTUALMODE window
     ----------------------------------------------------------------------*/
     #include <conio.h>
     #include <dos.h>

     #include "wndwc20.h"

     void main()
     {
         qinit();
         initwindow( LIGHTGRAY_BG, 1, 0 );
         setwindowmodes( VIRTUALMODE );
         makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
                     SINGLE_BORDER, WINDOW1 );
         writetovirtual( WINDOW1 );
         titlewindow( TOP, LEFT, YELLOW+BLUE_BG, " Virtual Window " );
         wwrite( 1, 1, "Upper left corner" );
         wwritec( 7, "This message is centered on the screen" );
         vupdatewindow();        /* Update the complete window on the CRT. */
         writetocrt();           /* Return to writing on the CRT. */
         getch();
     }

