L_AnnGetToolBarInfo

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnGetToolBarInfo(hwndToolBar, pInfo, uStructSize)

Gets information about the annotation toolbar.

Parameters

HWND hwndToolBar

Window handle for the toolbar. You get the window handle when you create the toolbar using the L_AnnCreateToolBar function.

pANNTOOLBARINFO pInfo

Address of the ANNTOOLBARINFO variable to be updated with the toolbar information.

L_UINT uStructSize

Size in bytes, of the structure pointed to by pInfo, for versioning. Use sizeof (ANNTOOLBARINFO).

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

To change the number of rows, call L_AnnSetToolBarRows. To change the number of columns, call L_AnnSetToolBarColumns.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT AnnGetToolBarInfoExample(HWND ToolbarWnd) 
{ 
   L_INT nRet; 
   ANNTOOLBARINFO Info; 
   L_TCHAR        cs[256]; 
 
   nRet = L_AnnGetToolBarInfo(ToolbarWnd, &Info, sizeof(ANNTOOLBARINFO)); 
   if(nRet != SUCCESS) 
      return nRet; 
   wsprintf(cs, TEXT("There are %d buttons\n%d rows\n%d columns\nin the toolbar."), 
      Info.uButtons, Info.uRows, Info.uColumns); 
   MessageBox(NULL, cs, TEXT(""), MB_OK); 
 
   nRet = L_AnnSetToolBarColumns(ToolbarWnd, Info.uColumns + 1); 
   if(nRet != SUCCESS) 
      return nRet; 
   MessageBox(NULL, TEXT("The toolbar now has an added column.\n"), TEXT(""), MB_OK); 
 
   nRet = L_AnnSetToolBarRows(ToolbarWnd, Info.uRows + 1); 
   if(nRet != SUCCESS) 
      return nRet; 
   MessageBox(NULL, TEXT("The toolbar now has one added row."), TEXT(""), MB_OK); 
   return SUCCESS; 
} 
Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.