//+------------------------------------------------------------------+ //| Zwischen.mqh | //| Thorsten Fischer Copyright 2019 | //| https://www.tfsystem.de | //+------------------------------------------------------------------+ #property copyright "Thorsten Fischer Copyright 2019" #property link "https://www.tfsystem.de" #property version "1.00" #property strict #include #include "TestGUI.mqh" //#include class CZwischen : public CTFObject { private: CTestGUI testgui; //CChart charttest; public: CZwischen(); ~CZwischen(); virtual int OnInitEvent(void); virtual void Destroy(const int aReason=0); }; CZwischen::CZwischen() { } CZwischen::~CZwischen() { } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int CZwischen::OnInitEvent(void) { if (!testgui.Create()) return(INIT_FAILED); return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ void CZwischen::Destroy(const int aReason=0) { testgui.Destroy(aReason); Print(DeInitReasonText(aReason)); // Reason als Text ausgeben } //+------------------------------------------------------------------+