Download MetaTrader 5

Code to maximize a window

To add comments, please log in or register
BB2013
120
BB2013  

Hi,

I developed a code to calculate a personal indicator. I apply it to 3 simultaneous pairs, presented in the screen in 3 Windows.

I intend to maximize the window where the indicator overcome a thereshold and, later, minimize that window when in no longer ok.

Exist a comand to maximize and minimize a window ?

Thanks

whroeder1
15321
whroeder1  

Start with reading #define's for known commands that can be used for PostMessageA() - MQL4 forum

Get the chart handle and send it the window command to maximize/minimize

BB2013
120
BB2013  

Thanks, but the function GetWindow is not defined in Mt4. How I overcome this ?

Ian Flanagan
549
Ian Flanagan  
Variopinto:

Thanks, but the function GetWindow is not defined in Mt4. How I overcome this ?


#import "user32.dll"
  int GetAncestor(int, int);
#import
(copy pasted from the same link WHRoeder sent you)
BB2013
120
BB2013  

Thanks again. Where can I get documentation about this "user32.dll" functions ?

Simon Gniadkowski
Moderator
18023
Simon Gniadkowski  
Variopinto:

Thanks again. Where can I get documentation about this "user32.dll" functions ?

Google, it's a Microsoft DLL
To add comments, please log in or register