DocumentationMQL5 ReferenceStandard LibraryPanels and DialogsCWndOnDeactivateOnDeactivateOnDeactivateThe virtual handler of the internal “Deactivate” event.virtual bool OnDeactivate()Return Value true - event processed, otherwise - false.Note The base class method does nothing and always returns true.Last updated on 2026-07-24OnActivateOnClick