Applies To:

ChemDraw Menu Extensions Interface:  Functions to Implement


Given an index into the submenu items and a ChemDraw document, returns a string with the submenu item's name.


long WINAPI GetSubmenuItemName( long submenuID,
                                                                long documentToken,
                                                                char *submenuName,
                                                                long maxNameLength

submenuID zero-based index into submenu items
documentToken ChemDraw document identifier token
submenuName buffer for null-terminated string containing the submenu name
maxNameLength maximum length of submenu name string

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


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


See Also:


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