home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD 45 / SuperCD45.iso / talleres / cplusplus / ResizeDialog.cpp < prev    next >
C/C++ Source or Header  |  2000-05-29  |  1KB  |  32 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "ResizeDialog.h"
  6. //---------------------------------------------------------------------------
  7. #pragma package(smart_init)
  8. #pragma link "cdiroutl"
  9. #pragma link "cdiroutl"
  10. #pragma link "cdiroutl"
  11. #pragma resource "*.dfm"
  12. TForm1 *Form1;
  13. //---------------------------------------------------------------------------
  14. __fastcall TForm1::TForm1(TComponent* Owner)
  15.         : TForm(Owner)
  16. {
  17. }
  18. //---------------------------------------------------------------------------
  19.  
  20. void __fastcall TForm1::CancelBtnClick(TObject *Sender)
  21. {
  22.     Close();
  23. }
  24. //---------------------------------------------------------------------------
  25. void __fastcall TForm1::FormCreate(TObject *Sender)
  26. {
  27.     Constraints->MinWidth = ClientWidth - OKBtn->Left + 10;
  28.     Constraints->MinHeight = ClientHeight - Bevel1->Top + 25;
  29. }
  30. //---------------------------------------------------------------------------
  31.  
  32.