Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2135-standardlibrary-chart-object-classes-cchartobject-cchartobjectwindow.md
T
2026-06-23 21:47:51 +08:00

28 lines
528 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Window
Gets the index of the chart window where the graphical object is located.
```
int  Window() const
```
Return Value
The number of the chart window where the graphical object is located (0 - main window). If there is no bound object, it returns -1.
Example:
```
//--- example for CChartObject::Window 
#include <ChartObjects\ChartObject.mqh> 
//--- 
void OnStart() 
  { 
   CChartObject object; 
   //--- get window of chart object  
   int window=object.Window(); 
  } 
```