Реферат: Разработка многопоточных Windows-приложений в среде Borland C Builder
#include "T3.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm3 *Form3;
//---------------------------------------------------------------------------
__fastcall TForm3::TForm3(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
T1.cpp
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include "T1.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
__fastcall T1::T1(bool CreateSuspended)
: TThread(CreateSuspended)
{
}
//---------------------------------------------------------------------------
void __fastcall T1::OutOnForm1()
{ static int i=2;
Form1->ScrollBar1->Position+=i;
if (Form1->ScrollBar1->Position == 100)
{Form1->ScrollBar1->Position=0;}
}