virtual L_INT LAnnotation::GetAutoMenuItemEnable(nObjectType, uItem, puEnable)
Retrieves a value that indicates whether the specified menu item is enabled or disabled.
Constant that specifies an object's type. For descriptions of possible object types, refer to Types of Annotations.
Constant that specifies the menu or dialog box item to enable or disable. For lists of constants and their default values, refer to the following:
Annotation Automation Menu Strings
Annotation Automation Line Dialog Strings
Annotation Automation Fill Dialog Strings
Annotation Automation Text Dialog Strings
Annotation Automation Audio Dialog Strings
Annotation Automation Stamp Dialog Strings
Annotation Automation ROP2 Dialog Strings
Annotation Automation Lock/Unlock Dialog Strings
Annotation Automation Miscellaneous Dialog Strings
Annotation Automation Ruler Dialog Strings
Annotation Automation Point Dialog Strings
Annotation Automation Video Dialog Strings
Annotation Automation Push Pin Dialog Strings
Annotation Automation Nodes Dialog Strings
Annotation Automation Protractor Dialog Strings
Annotation Automation Name Dialog Strings
Annotation Automation Play Video Dialog Strings
Annotation Automation Stamp Metafile Dialog Strings
Annotation Automation ToolTip Dialog Strings
Annotation Automation Transparent Color Dialog Strings
Annotation Automation Capture Dialog Strings
Address of a variable to be updated with a value that indicates whether the specified menu item has been enabled or disabled for the object. Possible values are:
Value | Meaning |
---|---|
ANNMENU_ENABLED | Enable the menu item. |
ANNMENU_DISABLED | Disable the menu item. |
ANNMENU_DEFAULT | Enable or disable the menu item, based on the setting for the object type. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
If for the specified object, the menu items enable state is ANNMENU_DEFAULT, the function determines whether the enable state has been set for objects of the specified type. If the enable state for objects of the specified type is also ANNMENU_DEFAULT, the function determines whether the enable state has been set for ANNOBJECT_ALL. If this is also ANNMENU_DEFAULT, the function determines whether the menu item text is NULL or not NULL. If it is NULL, the function updates puEnable with ANNMENU_DISABLE. If the menu item is not NULL, the function updates puEnable with ANNMENU_ENABLE.
Win32, x64.
For an example, refer to LAnnotation::SetAutoMenuItemEnable.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document