This would work. You need to adopt the import declaration (I do not share everything)
#include <Ovo/imports/constants.import.mqh> #import "user32.dll" BOOL WINAPI SetWindowTextW( _In_ HWND hWnd, _In_opt_ LPCTSTR lpString ); HWND WINAPI GetParent( _In_ HWND hWnd ); #import void OnStart() { string text = "My label"; SetWindowTextW(GetParent(GetParent(GetParent((int)ChartGetInteger(0, CHART_WINDOW_HANDLE)))), text); }
@Ovo why use GetParenGetParentGetParentGetParentGetParent.... instead of GetAncestor
For sure you may use whatever you prefer. Perhaps there are some other ways.
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
is there a way to rename the label at the top left hand corner of MT4?
I'm trying to shorten it so that another program can recognize it.
So instead of saying 274530 Oanda Meta trader Account EURUSD
IT WOULD SAY 274530 Oanda Meta trader Account
If so, please guide me on how to do it.
Thanks
rick