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

 
Output of file : WDWOWNER.CPP contained in archive : TCPPTECH.ZIP
// WINDOW (TEXT) LIBRARY
// wdwowner.cpp v1.00 11-Jul-1990
// Turbo C++ 1.0
//
// Defines a window border
//
// Written by Scott Robert Ladd.

#include "stddef.h"
#include "wdwowner.h"

WdwOwnerTable::WdwOwnerTable()
{
RowSize = 0;
ColSize = 0;

OwnerArray = NULL;
}

void WdwOwnerTable::SetSize(unsigned short rows, unsigned short cols)
{
RowSize = rows;
ColSize = cols;

if (OwnerArray != NULL)
delete OwnerArray;

OwnerArray = new Window * [rows * cols];

Clear();
}

WdwOwnerTable::~WdwOwnerTable()
{
delete OwnerArray;
}

void WdwOwnerTable::Clear()
{
unsigned short row, col;

for (row = 0; row < RowSize; ++row)
for (col = 0; col < ColSize; ++col)
OwnerArray[row * ColSize + col] = NULL;
}


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

  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/