home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
POINT Software Programming
/
PPROG1.ISO
/
c
/
fli106c
/
winmcall.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-11
|
757b
|
34 lines
//
// The Fusion Library Interface for DOS
// Version 1.06c
// Copyright (C) 1990, 1991, 1992
// Software Dimensions
//
// MenuControl --> MenuItems --> FusionWindow
//
#include "fliwin.h"
#ifdef __BCPLUSPLUS__
#pragma hdrstop
#endif
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//
// CallMenu()
//
// Calls up a menu, after an event requests it
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
void MenuManager::CallMenu()
{
RemoveAllMenus();
PlaceMenu(*Menus[0]);
MouseInControl=0;
MenuItems &Menu=*SubMenuTrack[CurrentLevel-1];
_Options &Option=*(Menu.Option+Menu.CurrentOption);
if (!*Option.Available || !Option.Option)
FindNext();
}