mainmdi.h
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. //---------------------------------------------------------------------------
  2. #ifndef mainmdiH
  3. #define mainmdiH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include "fcButtonGroup.hpp"
  10. #include "fcClearPanel.hpp"
  11. #include <ComCtrls.hpp>
  12. #include <Dialogs.hpp>
  13. #include <ExtCtrls.hpp>
  14. #include <ImgList.hpp>
  15. #include <Menus.hpp>
  16. #include <ToolWin.hpp>
  17. #include <DBGrids.hpp>
  18. #include <Grids.hpp>
  19. //---------------------------------------------------------------------------
  20. class TMainMdiForm : public TForm
  21. {
  22. __published: // IDE-managed Components
  23.         TStatusBar *StatusBar;
  24.         TToolBar *ToolBar2;
  25.         TToolButton *ToolButton9;
  26.         TToolButton *ToolButton3;
  27.         TToolButton *ToolButton8;
  28.         TToolButton *ToolButton10;
  29.         TfcButtonGroup *fcButtonGroup1;
  30.         TMainMenu *MainMenu1;
  31.         TMenuItem *File1;
  32.         TMenuItem *FileNewItem;
  33.         TMenuItem *FileCloseItem;
  34.         TMenuItem *N1;
  35.         TMenuItem *FileExitItem;
  36.         TMenuItem *Window1;
  37.         TMenuItem *WindowCascadeItem;
  38.         TMenuItem *WindowTileItem;
  39.         TOpenDialog *OpenDialog;
  40.         TImageList *ImageList1;
  41.         void __fastcall FileExitItemClick(TObject *Sender);
  42.         void __fastcall ToolButton10Click(TObject *Sender);
  43.         void __fastcall ToolButton8Click(TObject *Sender);
  44.         void __fastcall FileCloseItemClick(TObject *Sender);
  45.         void __fastcall FileNewItemClick(TObject *Sender);
  46.         void __fastcall FormActivate(TObject *Sender);
  47.         void __fastcall fcButtonGroup1Change(
  48.           TfcCustomButtonGroup *ButtonGroup,
  49.           TfcButtonGroupItem *OldSelected, TfcButtonGroupItem *Selected);
  50. private: // User declarations
  51. public: // User declarations
  52.         __fastcall TMainMdiForm(TComponent* Owner);
  53.         void __fastcall SetMDIChildCaption(TCustomForm * Child, String Name);
  54.         void __fastcall CreateMDIChild(const String Name);
  55. };
  56. //---------------------------------------------------------------------------
  57. extern PACKAGE TMainMdiForm *MainMdiForm;
  58. //---------------------------------------------------------------------------
  59. #endif