#include "LtTLB.h"
L_LTTLB_API L_INT L_TBSetPosition(pToolbar, lpptPos, dwFlags )
pTOOLBARHANDLE pToolbar; |
pointer to a toolbar handle |
LPPOINT lpptPos; |
pointer to a structure |
L_UINT32 dwFlags; |
position flags |
Sets the toolbar position.
Parameter | Description | |
pToolbar | Pointer to a toolbar handle. | |
lpptPos | Pointer to a POINT structure that contains values used to align the toolbar. The coordinates are with respect to the screen. | |
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. | |
For example, TOOLBAR_POSITION_LEFT | TOOLBAR_POSITION_TOP indicates that lpptPos is the top left point of the toolbar. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes |
To get the current toolbar position and alignment, call L_TBGetPosition.
Required DLLs and Libraries
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.