#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.
Handle to the parent window.
Pointer to the POINT structure that specifies the position of the new window in the parent window. Coordinates are relative to the parent window.
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.
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. |
Address of the HWND variable to be updated with the handle to the toolbar window.
Number of buttons that will be in the annotation toolbar. This value is valid only if pButtons
is not NULL.
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.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
(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
Win32, x64.
For an example, refer to Implementing an Automated Annotation Program.
For complete sample code, refer to the ANNOTATE example.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document