L_AnnCreateToolBar

#include "l_bitmap.h"

L_LTANN_API L_INT L_AnnCreateToolBar(hwndParent, pPoint, uAlign, fVisible, phWnd, uButtons, pButtons)

Creates an annotation toolbar in the specified window.

Parameters

HWND hwndParent

Handle to the parent window.

LPPOINT pPoint

Pointer to the POINT structure that specifies the position of the new window in the parent window. Coordinates are relative to the parent window.

L_UINT uAlign

Value indicating which corner of the toolbar is located at pPoint. One of the following values:

ANNTOOLALIGN_LEFT [0x0000]
ANNTOOLALIGN_RIGHT [0x0001] must be combined using the bitwise OR with one of these values:
ANNTOOLALIGN_TOP [0x0000]
ANNTOOLALIGN_BOTTOM [0x0002]
For example, ANNTOOLALIGN_LEFT|ANNTOOLALIGN_TOP indicates that pPoint is the top left point of the toolbar.

L_BOOL fVisible

Flag that indicates whether the toolbar will be visible. Possible values are:

Value Meaning
TRUE Toolbar will be visible.
FALSE Toolbar will not be visible.

HWND *phWnd

Address of the HWND variable to be updated with the handle to the toolbar window.

L_UINT uButtons

Number of buttons that will be in the annotation toolbar. This value is valid only if pButtons is not NULL.

pANNBUTTON pButtons

Array of ANNBUTTON structures that contain information about the tool buttons to include in the annotation toolbar. If this is NULL, the default annotation toolbar will be created.

Returns

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

Comments

(Document and Medical) Before calling this function, you must declare a variable of data type HWND. Then, pass the address of the variable in the phWnd parameter. This function will update the variable with the window handle for the toolbar.

Required DLLs and Libraries

Platforms

Win32, x64.

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.