L_AnnGetToolBarButtons

#include "l_bitmap.h"

L_LTANN_APIL_INTL_AnnGetToolBarButtons(hwndToolBar, pButtons, puButtons, uStructSize)

Retrieves information about the buttons in the annotation toolbar.

Parameters

HWNDhwndToolBar

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

pANNBUTTONpButtons

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

L_UINTuStructSize

Size in bytes, of the structure pointed to bypuButtons

L_UINT*puButtons

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

Returns

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

Comments

Call this function once, with pButtons set to NULL. This will retrieve the number of buttons in the toolbar, updatingpuButtons。接下来,分配适当的内存for thepButtonsarray, and call this function again to retrieve the button information.

Required DLLs and Libraries

Platforms

Win32, x64.

LEADTOOLS Raster Imaging C API Help
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.