home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
WINCLIP
/
EXAM123.C
< prev
next >
Wrap
Text File
|
1993-12-01
|
960b
|
43 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
main()
{
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,30,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
WindowWriteString(w,"Press a key to change rows",1,1);
GET_KEY();
if (VGA_MODE_ON || MCGA_MODE_ON)
SetVideoRows(50,0);
else
if (EGA_MODE_ON)
SetVideoRows(43,0);
else
{
WindowWriteString(w,"Cannot change rows",1,1);
exit(0);
}
/* Adjust the screen information */
AdjustScreenInfo(0);
/* OK to adjust to new height */
WindowResizeHeight(w,40,ANCHORLEFT);
WindowWriteString(w,"Now press a key to change back",2,1);
GET_KEY();
/* First we must resize window */
WindowResizeHeight(w,10,ANCHORTOP);
SetVideoRows(25,0);
AdjustScreenInfo(0);
}