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

LVectorDialog::DoModalVectorEditObject

Show in webframe

#include "ltwrappr.h"

virtual L_INT LVectorDialog::DoModalVectorEditObject(hWndParent, pVectorObject);

HWND hWndParent;

/* window handle */

LVectorObject * pVectorObject;

/* pointer to a vector object */

Brings up the Edit Object dialog. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameter

Description

hWndParent

Handle of the window that owns the dialog.

pVectorObject

Pointer to the vector object to be edited. This parameter must contain a valid pointer to an LVectorObject object. This parameter cannot be NULL.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LVKRN
LVDLG
LTFIL

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:

LVectorDialog::DoModalVectorNewObject, Class Members

Topics:

Vector CommonDialogs

Example

This example will bring up the Edit Object dialog box for an object returned by HitTest.

L_INT LVectorDialog__DoModalVectorEditObjectExample(HWND hWnd, LVectorBase *pVectorBase, LPPOINT pPoint)
{
   L_INT          nRet;
   LVectorObject  MyObject;
   nRet = pVectorBase->HitTest (pPoint, &MyObject);
   if (nRet == SUCCESS)
   {
      LVectorDialog VectorDlg(pVectorBase);
      VectorDlg.EnablePreview ();
      VectorDlg.EnableAutoProcess();
      nRet = VectorDlg.DoModalVectorEditObject(hWnd, &MyObject);
      if(nRet != SUCCESS)
         return nRet;
   }
   else
      return nRet;
   return SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.