home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_GEN
/
FACETV.ZIP
/
HEAPVIEW.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-09
|
970b
|
44 lines
/************************************************************************
**
** @(#)heapview.h 04/01/92 Chris Ahlstrom
**
** The THeapView from Borland's GADGETS modules. I stole it!
** Copyright (c) 1991 by Borland International
**
** Gadgets for the Turbo Vision Demo. Includes the heap view which
** displays the current heap space at the right end of the status line.
**
*************************************************************************/
#if !defined( HEAPVIEW_h ) // { HEAPVIEW_h
#define HEAPVIEW_h
#if !defined(Uses_TEvent)
#define Uses_TEvent
#define Uses_TRect
#define Uses_TView
#include <tv.h>
#endif
class THeapView : public TView
{
public:
THeapView( TRect& r );
virtual void update();
virtual void draw();
virtual long heapSize();
virtual void clearLine();
int turnHeapOff;
private:
long oldMem, newMem;
char heapStr[16];
};
#endif // } HEAPVIEW_h