Who can convert a remove border script from mt4 to mt5 (paid)?

 

Who can convert a remove border script from mt4 to mt5 (paid)?

The mt 4 script attached.

Files:
 
If no one helps you directly on this thread so you may consider to use Freelance https://www.mql5.com/en/job for example.
Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2024.03.24
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
MT5:
//+------------------------------------------------------------------+
//|                                                 RemoveBorders.mqh |
//|                                                          Your Copyright |
//|                                                                  Your Link |
//+------------------------------------------------------------------+
#import "user32.dll"
int SetWindowLongPtrA(int hWnd, int nIndex, int dwNewLong);
int GetWindowLongPtrA(int hWnd, int nIndex);
int SetWindowPos(int hWnd, int hWndInsertAfter, int X, int Y, int cx, int cy, int uFlags);
int GetParent(int hWnd);
#import

#define GWL_STYLE -16
#define WS_CAPTION 0x00C00000
#define WS_BORDER 0x00800000
#define WS_SIZEBOX 0x00040000
#define WS_DLGFRAME 0x00400000
#define SWP_NOSIZE 0x0001
#define SWP_NOMOVE 0x0002
#define SWP_NOZORDER 0x0004
#define SWP_NOACTIVATE 0x0010
#define SWP_FRAMECHANGED 0x0020
//+------------------------------------------------------------------+
//| Script Program start function                                     |
//+------------------------------------------------------------------+
void OnStart()
  {
   long iChartParent=GetParent((int)ChartWindowHandle(Symbol(), 0));
   long iNewStyle=GetWindowLongPtrA(iChartParent, GWL_STYLE) & (~(WS_BORDER | WS_DLGFRAME | WS_SIZEBOX));
   if(iChartParent > 0 && iNewStyle > 0)
     {
      SetWindowLongPtrA(iChartParent, GWL_STYLE, iNewStyle);
      SetWindowPos(iChartParent, 0, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_FRAMECHANGED);
     }
  }
 
Post in freelance for paid task not here in forum
 
Oleksandr Medviediev #:
MT5:

Hello, thanks for convert the script.

But there are some errors when I tried compile it. Can you help to fix them?

Files:
1.jpg  302 kb