Category : C Source Code
Archive   : TCPPTECH.ZIP
Filename : WDWOWNER.H

 
Output of file : WDWOWNER.H contained in archive : TCPPTECH.ZIP
// WINDOW (TEXT) LIBRARY
// 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


  3 Responses to “Category : C Source Code
Archive   : TCPPTECH.ZIP
Filename : WDWOWNER.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/