DialogBox

 
#include <Controls\Dialog.mqh>
#include <Controls\Button.mqh>
#include <Controls\Label.mqh>
#include <Controls\Edit.mqh>
#include <Controls\CheckBox.mqh>
#include <Controls\MyDialogApp.mqh>
#include <Controls\RadioGroup.mqh>

CAppDialog  *MyDialog;

void OnInit()
{
MyDialog = new CMyAppDialog;
   if(! MyDialog.Create(0,InpPanelName,0,AppDialogLeft,AppDialogTop,AppDialogLeft+AppDialogWidth,AppDialogTop+AppDialogHeight))
      Print(GetLastError());
}
I want to create a dialog to show info on it, but the thing is after dialog is created on one chart, if I switch the chart and then return back to the initial chart, I find that dialogbox is minimized. How can I cancel minimizing if the chart is changed? Thanks!