Sets the toolbar position.
#include "LtTLB.h"
L_LTTLB_API L_INT L_TBSetPosition(pToolbar, lpptPos, dwFlags)
Pointer to a toolbar handle.
Pointer to a POINT structure that contains values used to align the toolbar. The coordinates are with respect to the screen.
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.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes |
To get the current toolbar position and alignment, call L_TBGetPosition.
LTTLB
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
For an example, refer to L_TBCreate.