L_AnnGetToolBarButtons

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnGetToolBarButtons(hwndToolBar, pButtons, puButtons, uStructSize)

Retrieves information about the buttons in 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.

pANNBUTTON pButtons

Pointer to an array of ANNBUTTON structures to be updated with information about the buttons in the annotation toolbar.

L_UINT uStructSize

Size in bytes, of the structure pointed to by puButtons.

L_UINT *puButtons

Address of a variable to be updated with the number of buttons in the toolbar (number of entries in the pButtons array).

Returns

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

Comments

Call this function once, with pButtons set to NULL. This will retrieve the number of buttons in the toolbar, updating puButtons. Next, allocate the appropriate amount of memory for the pButtons array, and call this function again to retrieve the button information.

Required DLLs and Libraries

Platforms

Win32, x64.

Help Version 21.0.2021.7.5
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.