GetSubmenuItemState

Applies To:

ChemDraw Menu Extensions Interface:  Functions to Implement

Description:

Given an index into the submenu items and a ChemDraw document, returns the display state of the submenu item.

Syntax:

long WINAPI GetSubmenuItemState( long submenuID,
                                                              long documentToken,
                                                              SubmenuItemState *state
);

submenuID zero-based index into the submenu items   
documentToken ChemDraw document identifier token
state display flags

Returns a long indicating success (0) or failure (!0) of the function.

Remarks:

The SubmenuItemState controls the appearance of each submenu item. States can be OR'ed for a combination of effects:
  • kSubmenuDisabled
  • kSubmenuEnabled
  • kSubmenuChecked

This function must have ordinal number 19 in the Export Definition File.
If an error is returned, ChemDraw may call GetErrorString for a string explaining the error.

Example:

See Also:

GetErrorString


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA