Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Libraries | CWndContainer Replacement

MetaTrader Experts, Indicators, Scripts and Libraries

Real author:

Original by MetaQuotes Software Corp. Modifications by Doerk.

This file replaces the WndContainer.mqh original file. One new function and two small modifications prevent the chart from being affected, when you click and hold the mouse inside a container window, i.e. when you press a button which is placed inside a dialogue, move a slider or anything similar. The replacement works also with the CDialog class and should not affect anything in a negative way.

The easiest way is to replace the original file, but please create a backup from the original, just in case if you encounter any problems which I currently could not find.

Recommendations:

  • Please backup your original WndContainer.mqh file first.
  • New function: VerifyMouseFocus() — private, called automatically.
  • Modified: OnEvent() and OnMouseEvent() which are used for any interactions.
13722

Best MetaTrader Indicators + Profitable Expert Advisors