Gets information about the annotation toolbar.
#include "l_bitmap.h"
L_LTANN_API L_INT L_AnnGetToolBarInfo(hwndToolBar, pInfo, uStructSize)
Window handle for the toolbar. You get the window handle when you create the toolbar using the L_AnnCreateToolBar function.
Address of the ANNTOOLBARINFO variable to be updated with the toolbar information.
Size in bytes, of the structure pointed to by pInfo
, for versioning. Use sizeof (ANNTOOLBARINFO).
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To change the number of rows, call L_AnnSetToolBarRows. To change the number of columns, call L_AnnSetToolBarColumns.
Win32, x64.
L_INT AnnGetToolBarInfoExample(L_HWND ToolbarWnd)
{
L_INT nRet;
ANNTOOLBARINFO Info;
L_TCHAR szMessage[300];
nRet = L_AnnGetToolBarInfo(ToolbarWnd, &Info, sizeof(ANNTOOLBARINFO));
if (nRet != SUCCESS)
return nRet;
wsprintf(szMessage, TEXT("There are %d buttons\n%d rows\n%d columns\nin the toolbar."),
Info.uButtons, Info.uRows, Info.uColumns);
_tprintf(_T("%s"), szMessage);
nRet = L_AnnSetToolBarColumns(ToolbarWnd, Info.uColumns + 1);
if (nRet != SUCCESS)
return nRet;
_tprintf(_T("%s"), TEXT("The toolbar now has an added column."));
nRet = L_AnnSetToolBarRows(ToolbarWnd, Info.uRows + 1);
if (nRet != SUCCESS)
return nRet;
_tprintf(_T("%s"), TEXT("The toolbar now has one added row."));
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document