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_RIGHT [0x0001] must be combined using the bitwise OR with one of these values:
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:
|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.
|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
For an example, refer to Implementing an Automated Annotation Program.
For complete sample code, refer to the ANNOTATE example.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries