#include "ltwrappr.h"
L_INT LToolbar::SetPosition (lpptPos, dwFlags )
Sets the toolbar's window position.
Pointer to a POINT structure that contains values used to align the toolbar. The coordinates are with respect to the screen.
Sets of flags that will indicate how the toolbar will be aligned. Choose one value from each category, and combine them using the bitwise OR operator ( | ). Possible values are:
Value | Meaning |
---|---|
TOOLBAR_POSITION_LEFT | The specified point x will become the left of the toolbar window. |
TOOLBAR_POSITION_RIGHT | The specified point x will become the right of the toolbar window. |
Value | Meaning |
---|---|
TOOLBAR_POSITION_TOP | The specified point y will become the top of the toolbar window. |
TOOLBAR_POSITION_BOTTOM | The specified point y will become the bottom of the toolbar window. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To get the current toolbar position and alignment, call LToolbar::GetPosition.
Required DLLs and Libraries
For an example, refer to LToolbar::Create.