L_TBSetPosition

#include "LtTLB.h"

L_LTTLB_API L_INT L_TBSetPosition(pToolbar, lpptPos, dwFlags)

Sets the toolbar position.

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 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Toolbar C API Help