L_TBSetPosition

Summary

Sets the toolbar position.

Syntax

#include "LtTLB.h"

L_LTTLB_API L_INT L_TBSetPosition(pToolbar, lpptPos, dwFlags)

Parameters

pTOOLBARHANDLE pToolbar

Pointer to a toolbar handle.

LPPOINT lpptPos

Pointer to a POINT structure that contains values used to align the toolbar. The coordinates are with respect to the screen.

L_UINT32 dwFlags

Flags that indicate which corner of the toolbar is located at lpptPos. Possible values are:

One of the following values

Value Meaning
TOOLBAR_POSITION_LEFT The x-coordinate of the specified point will become the left of the toolbar.
TOOLBAR_POSITION_RIGHT The x-coordinate of the specified point will become the right of the toolbar.

Must be combined using the bitwise OR with one of these values:

Value Meaning
TOOLBAR_POSITION_TOP The y-coordinate of the specified point will become the top of the toolbar.
TOOLBAR_POSITION_BOTTOM The y-coordinate of the specified point will become the bottom of the toolbar.

As an example, TOOLBAR_POSITION_LEFT | TOOLBAR_POSITION_TOP indicates that lpptPos is the top left point of the toolbar.

Returns

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

Comments

To get the current toolbar position and alignment, call L_TBGetPosition.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TBCreate.

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

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