Main.h
上传用户:lulishicai
上传日期:2010-03-01
资源大小:13202k
文件大小:3k
源码类别:

Delphi/CppBuilder

开发平台:

C++ Builder

  1. //----------------------------------------------------------------------------
  2. #ifndef MainH
  3. #define MainH
  4. //----------------------------------------------------------------------------
  5. #include "ChildWin.h"
  6. #include <vclComCtrls.hpp>
  7. #include <vclExtCtrls.hpp>
  8. #include <vclMessages.hpp>
  9. #include <vclButtons.hpp>
  10. #include <vclDialogs.hpp>
  11. #include <vclStdCtrls.hpp>
  12. #include <vclMenus.hpp>
  13. #include <vclControls.hpp>
  14. #include <vclForms.hpp>
  15. #include <vclGraphics.hpp>
  16. #include <vclClasses.hpp>
  17. #include <vclSysUtils.hpp>
  18. #include <vclWindows.hpp>
  19. #include <vclSystem.hpp>
  20. #include <ActnList.hpp>
  21. #include <ImgList.hpp>
  22. #include <StdActns.hpp>
  23. #include <ToolWin.hpp>
  24. //----------------------------------------------------------------------------
  25. class TMainForm : public TForm
  26. {
  27. __published:
  28. TMainMenu *MainMenu1;
  29. TMenuItem *File1;
  30. TMenuItem *FileNewItem;
  31. TMenuItem *FileOpenItem;
  32. TMenuItem *FileCloseItem;
  33. TMenuItem *Window1;
  34. TMenuItem *Help1;
  35. TMenuItem *N1;
  36. TMenuItem *FileExitItem;
  37. TMenuItem *WindowCascadeItem;
  38. TMenuItem *WindowTileItem;
  39. TMenuItem *WindowArrangeItem;
  40. TMenuItem *HelpAboutItem;
  41. TOpenDialog *OpenDialog;
  42. TMenuItem *FileSaveItem;
  43. TMenuItem *FileSaveAsItem;
  44. TMenuItem *Edit1;
  45. TMenuItem *CutItem;
  46. TMenuItem *CopyItem;
  47. TMenuItem *PasteItem;
  48. TMenuItem *WindowMinimizeItem;
  49.         TStatusBar *StatusBar;
  50.         TActionList *ActionList1;
  51.         TEditCut *EditCut1;
  52.         TEditCopy *EditCopy1;
  53.         TEditPaste *EditPaste1;
  54.         TAction *FileNew1;
  55.         TAction *FileSave1;
  56.         TAction *FileExit1;
  57.         TAction *FileOpen1;
  58.         TAction *FileSaveAs1;
  59.         TWindowCascade *WindowCascade1;
  60.         TWindowTileHorizontal *WindowTileHorizontal1;
  61.         TWindowArrange *WindowArrangeAll1;
  62.         TWindowMinimizeAll *WindowMinimizeAll1;
  63.         TAction *HelpAbout1;
  64.         TWindowClose *FileClose1;
  65.         TWindowTileVertical *WindowTileVertical1;
  66.         TMenuItem *WindowTileItem2;
  67.         TToolBar *ToolBar2;
  68.         TToolButton *ToolButton1;
  69.         TToolButton *ToolButton2;
  70.         TToolButton *ToolButton3;
  71.         TToolButton *ToolButton4;
  72.         TToolButton *ToolButton5;
  73.         TToolButton *ToolButton6;
  74.         TToolButton *ToolButton7;
  75.         TToolButton *ToolButton8;
  76.         TToolButton *ToolButton9;
  77.         TToolButton *ToolButton10;
  78.         TToolButton *ToolButton11;
  79.         TImageList *ImageList1;
  80.         void __fastcall FileNew1Execute(TObject *Sender);
  81.         void __fastcall FileOpen1Execute(TObject *Sender);
  82.         void __fastcall HelpAbout1Execute(TObject *Sender);
  83.         void __fastcall FileExit1Execute(TObject *Sender);
  84.         void __fastcall FormCreate(TObject *Sender);
  85. private:
  86. void __fastcall CreateMDIChild(const String Name);
  87. public:
  88. virtual __fastcall TMainForm(TComponent *Owner);
  89. };
  90. //----------------------------------------------------------------------------
  91. extern TMainForm *MainForm;
  92. extern TMDIChild *__fastcall MDIChildCreate(void);
  93. //----------------------------------------------------------------------------
  94. #endif