L_VecDlgEditObject
#include "lvdlg.h"
L_INT EXT_FUNCTION L_VecDlgEditObject(hWnd, pVector, pObject, nType, pObjectDesc, dwFlags, pfnCallback, pUserData)
HWND hWnd; |
/* window handle */ |
pVECTORHANDLE pVector; |
/* pointer to a vector handle */ |
const pVECTOROBJECT pObject; |
/* pointer to a vector object */ |
L_INT nType; |
/* object type to edit */ |
/* pointer to a structure */ | |
L_UINT32 dwFlags; |
/* user interface flags for dialog */ |
LVCOMMDLGHELPCB pfnCallback; |
/* pointer to a help callback function */ |
L_VOID * pUserData; |
/* pointer to more parameters for the callback */ |
Brings up the Edit Object dialog. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.
Parameter |
Description |
|
hWnd |
Handle of the window that owns the dialog. |
|
pVector |
Pointer to the vector handle that contains the object to edit. |
|
pObject |
Pointer to the vector object to be edited. |
|
nType |
Object type. Possible values are: |
|
|
Value |
Meaning |
|
VECTOR_ARC |
Arc. |
|
VECTOR_CHORD |
Chord. |
|
VECTOR_CLONE |
Clone object of a vector group. |
|
VECTOR_CIRCLE |
Circle. |
|
VECTOR_ELLIPSE |
Ellipse. |
|
VECTOR_ELLIPTICALARC |
Elliptical arc. |
|
VECTOR_LINE |
Line. |
|
VECTOR_PIE |
Pie section. |
|
VECTOR_POLYBEZIER |
Poly Bezier curve. |
|
VECTOR_POLYDRAW |
Polydraw. |
|
VECTOR_POLYGON |
Polygon. |
|
VECTOR_POLYLINE |
Polyline. |
|
VECTOR_RASTER |
Raster. |
|
VECTOR_RECTANGLE |
Rectangle. |
|
VECTOR_STOCK |
Stock object from a stock library. |
|
VECTOR_TEXT |
Text. |
|
VECTOR_VERTEX |
3D vertex in space. |
pObjectDesc |
Pointer to a structure that contains object information about the object to edit. The values present in the structure when the function is called are used to initialize the dialog. If this parameter is NULL when the function is called, values from pObject will be used to initialize the dialog. When this function returns, if this parameter is not NULL, the structure will be updated with the values entered through the dialog. |
|
dwFlags |
User interface flags for dialog. Determines the layout and action of the dialog. |
|
|
Value |
Meaning |
|
VECTOR_DLG_AUTO_PROCESS |
[0x80000000] process the vector on OK. |
pfnCallback |
Pointer to an optional help callback function. |
|
|
If you do not wish to provide help to this dialog, use NULL as the value of this parameter. |
|
|
To provide help to this dialog, use the function pointer as the value of this parameter. |
|
|
The callback function must adhere to the prototype described in LVCOMMDLGHELPCB. |
|
pUserData |
Void pointer that you can use to pass one or more additional parameters that the callback function needs. |
|
|
To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function, which receives the address in its own pUserData parameter, can cast it to a pointer of the appropriate data type to access your variable or structure. |
|
|
If the additional parameters are not needed, you can pass NULL in this parameter. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Required DLLs and Libraries
LVDLG 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: |
|
Topics: |
Example
/* This example will edit the object under the given point */
void EditObject( HWND hWnd, pVECTORHANDLE pVector, const POINT *ppt )
{
VECTOROBJECT Object;
L_INT nRet;
/* get the object under the point */
nRet = L_VecHitTest ( pVector, ppt, &Object );
if( nRet == SUCCESS )
{
/* there was an object under the point, edit it */
L_VecDlgEditObject( hWnd, pVector, &Object, Object.nType, NULL, VECTOR_DLG_AUTO_PROCESS, NULL, NULL );
}
}