Windwos / Chart Size

 

Hello

I would like to change the size of the windows from the program.
! It is not about the subwindows of the indicators !

For example, there four open chart with different symbols (EURUSD, GBPUSD etc.).
I would like to control the size and position of the chart-windows within the big MT5 windows..

All I've found is: CHART_WINDOW_HANDLE

How to do this?

greetings
    Willbur
 

You'll need to "allow DLL imports"

#import "user32.dll"
   int  GetParent(int hWnd);
   void MoveWindow(int hWnd,int X,int Y,int nWidth,int nHeight,int bRepaint);
#import

Get the parent e.g. to move the current chart:

int parent = GetParent((int)ChartGetInteger(0,CHART_WINDOW_HANDLE));

Then move the window e.g. to locate window at x=50, y=75 with chart width=400 and chart height=500:

MoveWindow(parent,50,75,400,500,true);

HTH

 
Works fine!  Thank you!!!
Reason: