L_AnnGetToolBarButtons

Summary

Retrieves information about the buttons in the annotation toolbar.

Syntax

#include "l_bitmap.h"

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

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.

See Also

Functions

Topics

Example

For an example, refer to L_AnnFreeToolBarButtons.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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