home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / MAIN.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  3KB  |  81 lines

  1. //----------------------------------------------------------------------------
  2. #ifndef MainH
  3. #define MainH
  4. //----------------------------------------------------------------------------
  5. #include "ChildWin.h"
  6. #include <vcl\ComCtrls.hpp>
  7. #include <vcl\ExtCtrls.hpp>
  8. #include <vcl\Messages.hpp>
  9. #include <vcl\Buttons.hpp>
  10. #include <vcl\Dialogs.hpp>
  11. #include <vcl\StdCtrls.hpp>
  12. #include <vcl\Menus.hpp>
  13. #include <vcl\Controls.hpp>
  14. #include <vcl\Forms.hpp>
  15. #include <vcl\Graphics.hpp>
  16. #include <vcl\Classes.hpp>
  17. #include <vcl\SysUtils.hpp>
  18. #include <vcl\Windows.hpp>
  19. #include <vcl\System.hpp>
  20. //----------------------------------------------------------------------------
  21. class TMainForm : public TForm
  22. {
  23. __published:
  24.     TMainMenu *MainMenu1;
  25.     TMenuItem *File1;
  26.     TMenuItem *FileNewItem;
  27.     TMenuItem *FileOpenItem;
  28.     TMenuItem *FileCloseItem;
  29.     TMenuItem *Window1;
  30.     TMenuItem *Help1;
  31.     TMenuItem *N1;
  32.     TMenuItem *FileExitItem;
  33.     TMenuItem *WindowCascadeItem;
  34.     TMenuItem *WindowTileItem;
  35.     TMenuItem *WindowArrangeItem;
  36.     TMenuItem *HelpAboutItem;
  37.     TOpenDialog *OpenDialog;
  38.     TMenuItem *FileSaveItem;
  39.     TMenuItem *FileSaveAsItem;
  40.     TMenuItem *Edit1;
  41.     TMenuItem *CutItem;
  42.     TMenuItem *CopyItem;
  43.     TMenuItem *PasteItem;
  44.     TMenuItem *WindowMinimizeItem;
  45.     TPanel *SpeedPanel;
  46.     TSpeedButton *OpenBtn;
  47.     TSpeedButton *SaveBtn;
  48.     TSpeedButton *CutBtn;
  49.     TSpeedButton *CopyBtn;
  50.     TSpeedButton *PasteBtn;
  51.     TSpeedButton *ExitBtn;
  52.     TStatusBar *StatusBar;
  53.     void __fastcall FormCreate(TObject *Sender);
  54.     void __fastcall FileNewItemClick(TObject *Sender);
  55.     void __fastcall WindowCascadeItemClick(TObject *Sender);
  56.     void __fastcall UpdateMenuItems(TObject *Sender);
  57.     void __fastcall WindowTileItemClick(TObject *Sender);
  58.     void __fastcall WindowArrangeItemClick(TObject *Sender);
  59.     void __fastcall FileCloseItemClick(TObject *Sender);
  60.     void __fastcall FileOpenItemClick(TObject *Sender);
  61.     void __fastcall FileExitItemClick(TObject *Sender);
  62.     void __fastcall FileSaveItemClick(TObject *Sender);
  63.     void __fastcall FileSaveAsItemClick(TObject *Sender);
  64.     void __fastcall CutItemClick(TObject *Sender);
  65.     void __fastcall CopyItemClick(TObject *Sender);
  66.     void __fastcall PasteItemClick(TObject *Sender);
  67.     void __fastcall WindowMinimizeItemClick(TObject *Sender);
  68.     void __fastcall FormDestroy(TObject *Sender);
  69.     
  70. private:
  71.     void __fastcall CreateMDIChild(const String Name);
  72.     void __fastcall ShowHint(TObject *Sender);
  73. public:
  74.     virtual __fastcall TMainForm(TComponent *Owner);
  75. };
  76. //----------------------------------------------------------------------------
  77. extern TMainForm *MainForm;
  78. extern TMDIChild *__fastcall MDIChildCreate(void);
  79. //----------------------------------------------------------------------------
  80. #endif    
  81.