Category : C Source Code
Archive   : TCPPTECH.ZIP
Filename : WDWOWNER.H
// wdwowner.h v1.00 11-Jul-1990
// Turbo C++ 1.0
//
// Defines a window border
//
// Written by Scott Robert Ladd.
#if !defined(WDWOWNER_H)
#define WDWOWNER_H
class Window;
class WdwOwnerTable
{
private:
Window * * OwnerArray;
unsigned short RowSize;
unsigned short ColSize;
public:
WdwOwnerTable();
~WdwOwnerTable();
void SetSize(unsigned short rows, unsigned short cols);
void Clear();
Window * OwnerOf(unsigned short row, unsigned short col);
void SetOwner(unsigned short row, unsigned short col, Window * w);
};
inline Window * WdwOwnerTable::OwnerOf(unsigned short row, unsigned short col)
{
return OwnerArray[row * ColSize + col];
}
inline void WdwOwnerTable::SetOwner(unsigned short row, unsigned short col,
Window * w)
{
OwnerArray[row * ColSize + col] = w;
}
#endif
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/