OptionalonThis procedure is called every time the menu or toolbar button is displayed, so it should not do compute-time-intensive processing. It is called before the menu item or toolbar button is displayed. If it returns FALSE, the menu item, or toolbar button will be disable; otherwise it will be enable. If this callback is NULL, the menu item or toolbar button is always enabled.
The user-supplied data
TRUE if the menu item, or toolbar button is enabled, FALSE otherwise.
ComputeEnabled event callback functions
Description
The event callback interface for ComputeEnabled event.
Example