home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
c
/
fli106c
/
winnext.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-11
|
764b
|
40 lines
//
// The Fusion Library Interface for DOS
// Version 1.06c
// Copyright (C) 1990, 1991, 1992
// Software Dimensions
//
// FusionWindow
//
#include "fliwin.h"
#ifdef __BCPLUSPLUS__
#pragma hdrstop
#endif
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//
// NextWindow()
//
// Jump to the next window in the stack
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
void FusionWindow::NextWindow()
{
if (NumberOfWindows<2)
return;
WindowElement *Save=Windows[0];
Save->Active=0;
for (int i=0;i<NumberOfWindows-1;i++)
Windows[i]=Windows[i+1];
Windows[0]->Active=1;
Windows[NumberOfWindows-1]=Save;
RemoveAllMenus();
RefreshWindows();
}