home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 May
/
VPR9705A.ISO
/
VPR_DATA
/
PROGRAM
/
CBTRIAL
/
SETUP
/
DATA.Z
/
MAINFORM.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-14
|
1KB
|
35 lines
//----------------------------------------------------------------------------
//Borland C++Builder
//Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//----------------------------------------------------------------------------
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "mainform.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RestrictSize(TMessage& Msg)
{
((POINT far *)Msg.LParam)[3].x = 300;
((POINT far *)Msg.LParam)[3].y = 300;
((POINT far *)Msg.LParam)[4].x = 400;
((POINT far *)Msg.LParam)[4].y = 400;
TForm::Dispatch(&Msg);
}
//---------------------------------------------------------------------
void __fastcall TForm1::FormResize(TObject *Sender)
{
Label2->Caption = IntToStr(Width);
Label4->Caption = IntToStr(Height);
Memo1->Width = Form1->Width - 45;
}
//---------------------------------------------------------------------