Added support for OnDrawMenu.