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
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!!!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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