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