CDClearCurrentSelection

Applies To:

ChemDraw Menu Extensions Interface:  Access Functions

Description:

Removes the currently selected structure from the given document

Syntax:

long CDAPI CDClearCurrentSelection( long documentToken );

documentToken a document token representing the document of interest, as provided to the DLL in a GetSubmenuItemName, GetSubmenuItemState or DoSubmenuChoice call.

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

Remarks:

No items will be selected in the document after this call, and no copy of the selection will be created. If a copy of the selection is required, use the CDCopyCurrentSelection function.

This function must have ordinal number 6 in the Import Definition File.

If an error is returned, the DLL may call CDGetApplicationErrorString for a string explaining the error.

Example:

See Also:

GetSubmenuItemName, GetSubmenuItemState, DoSubmenuChoice

, CDGetApplicationErrorString



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