Here is the example in the help file for using L_AnnEnumerateHandles:
// This example enumerates through all handles of an object,
// changing the predefined handles to blue squares
// and the user handles to red circles
L_INT L_EXPORT EXT_CALLBACK ColorNodesCallback(HANNOBJECT hObject, pANNHANDLEINFO pHandleInfo, L_VOID L_FAR * pUserData)
{
pHandleInfo->bVisible = TRUE;
if (pHandleInfo->nType == ANNHANDLETYPE_DEFAULT_HANDLE)
{
pHandleInfo->nShape = ANNHANDLE_SHAPE_SQUARE;
pHandleInfo->crFill = RGB(0,0,255);
}
else
{
pHandleInfo->nShape = ANNHANDLE_SHAPE_CIRCLE;
pHandleInfo->crFill = RGB(0,255,0);
}
return SUCCESS_CHANGE;
}
L_VOID ExampleAnnEnumerateHandles(HANNOBJECT hObject)
{
L_AnnEnumerateHandles(hObject, ColorNodesCallback, NULL);
}
Changing "pHandleInfo->bVisible = TRUE;" to "pHandleInfo->bVisible = FALSE;" should hide the handles.
If this does not appear to be the case, please send me a small sample project to I can take a look at your code.
NOTE: If you are attaching a project or file to the forums...
1.) Zip the file(s) up.
2.) Make sure it is less than 5 MB. If it is larger, please send an email to
support@leadtools.com and we'll send you FTP instructions.
3.) Remove ANY AND ALL unlock codes and LEADTOOLS DLLs.
4.) Do not click the preview button, the attachment will not show up when you post it.
If you do not wish to post your file(s) on the forum since they are publically viewable, please send an email to
support@leadtools.com and make sure that you include a link to this forum post.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.