LAutomation::Copy

#include "ltwrappr.h"

L_INT LAutomation::Copy (dwFlags = 0)

L_UINT32 dwFlags;

/* reserved */

Copies the selected objects in the active automation container to the Windows clipboard.

Parameter

Description

dwFlags

Reserved for future use. Must be 0.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

To paste valid automation data from the clipboard to the active automation container, use LAutomation::Paste.

Automation data can be cut from the active automation container and placed on the clipboard using LAutomation::Cut.

Required DLLs and Libraries

LTAUT

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LAutomation::Paste, LAutomation::Cut, LAutomation::ClipboardDataReady

Topics:

Editing Automation Containers

Example

This example shows how to do a copy operation to the current automation selection.

L_INT LAutomation_CopyExample(LAutomation &lauto)
{
   L_INT nRet;
   nRet = lauto.IsValid();
   if ( SUCCESS == nRet ) /* check the validity of the automation handle */
   {
      /* copy the current selection to the clipboard */
      nRet = lauto.Copy() ;
      if(nRet != SUCCESS)
         return nRet;
   }
   else
   {
      return nRet ;
   }
   return SUCCESS ;
}