home *** CD-ROM | disk | FTP | other *** search
- /* EXAMPLE 3: Different modes and a hidden window
- ----------------------------------------------------------------------*/
- #include <conio.h>
- #include <dos.h>
- #include "wndwc21.h"
-
- void main()
- {
- qinit();
- initwindow( LIGHTGRAY_BG, 1, 0 );
- setwindowmodes( HIDDENMODE | ZOOMMODE | CURSOROFFMODE );
- makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
- SINGLE_BORDER, WINDOW1 );
- wwritec( 12, "Where is it?" );
- writetohidden( WINDOW1 ); /* Write to the hidden window. */
- titlewindow( BOTTOM, RIGHT, YELLOW+BLUE_BG, " My Second Window " );
- wwritec( 3, "Here it is ..." );
- wbrdrh( 7 ); /* Add an extra horizontal border. */
- wwritec( 10, "It was hidden!" );
- #ifdef __TURBOC__
- delay( 2000 );
- #else
- suspend( 2000 );
- #endif
- showwindow( WINDOW1 ); /* Put it back on the screen. */
- #ifdef __TURBOC__
- delay( 2500 );
- #else
- suspend( 2500 );
- #endif
- removewindow();
- getch();
- }
-