Brings up the Vector Edit Layer dialog. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.
L_LVDLG_API L_INT L_VecDlgEditLayer(hWnd, pVector, pLayer, pLayerDesc, pbActiveLayer, dwFlags, pfnCallback, pUserData)
Handle of the window that owns the dialog.
Pointer to the vector handle that references the vector image to be affected by the new layer dialog.
Pointer to a VECTORLAYER structure that references the layer to be edited.
Pointer to a VECTORLAYERDESC structure that contains layer parameters. 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 obtained from the pLayer parameter 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.
Pointer to an L_BOOL variable that indicates whether or not to use the active layer. The value present in the variable when the function is called is used to initialize the dialog. If this parameter is NULL when the function is called, a value obtained from the pLayer and pVector parameters will be used to initialize the dialog. When this function returns, if this parameter is not NULL, the variable will be updated with the value entered through the dialog.
User interface flags for dialog. Determines the layout and action of the dialog.
|VECTOR_DLG_AUTO_PROCESS||[0x80000000] Process the vector on OK.|
|VECTOR_DLG_NO_RETURN_DUPLICATE||[0x00000001] Do not return duplicate layer names.|
|VECTOR_DLG_ENABLE_HELPBUTTON||[0x00000002] Enable Help button.|
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.
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.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This example will edit the current active layer in the given vector handle.
nRet = L_VecGetActiveLayer ( pVector, &Layer );
if(nRet != SUCCESS)
nRet = L_VecDlgEditLayer(
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms