Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Container and Automation C++ Class Library Help

LContainer::GetObjectCursor

Show in webframe

#include "Ltwrappr.h"

L_INT LContainer::GetObjectCursor (nObjectType, phCursor)

CONTAINEROBJECTTYPE nObjectType;

/* container object type */

HCURSOR* phCursor;

/* pointer to windows cursor to get the object cursor */

Gets a copy of the specified container object cursor.

Parameter

Description

nObjectType

An integer value that represents the object for which to get the cursor.

phCursor

Pointer to the variable to be updated with the cursor.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The user is responsible for deleting the received cursor.

When phCursor is no longer needed, it should be deleted.

Required DLLs and Libraries

LTCON

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:

LContainer::SetObjectCursor

Topics:

Using Container Objects

Example

L_INT LContainer_GetObjectCursorExample( LContainer &lCont, HCURSOR* phCur ) 
{
   L_INT nRet;
   nRet = lCont.IsValid ( );
   if ( nRet == SUCCESS ) /* check the validity of container handle */
   {
      HCURSOR hCursor ; 
      /* get the container line object cursor */
      nRet = lCont.GetObjectCursor ( CONTAINER_OBJECT_TYPE_LINE, &hCursor ) ; 
      if(nRet != SUCCESS)
         return nRet;
      *phCur = ( HCURSOR ) CopyImage ( phCur, IMAGE_CURSOR, 0, 0, 0 ) ; 
   }
   else
   {
      return nRet ;
   }
   return SUCCESS ;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.