LToolbar::SetPosition

#include "ltwrappr.h"

L_INT LToolbar::SetPosition (lpptPos, dwFlags )

Sets the toolbar's window position.

Parameters

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

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:

Horizontal Alignment Flags

ValueMeaning
TOOLBAR_POSITION_LEFTThe specified point x will become the left of the toolbar window.
TOOLBAR_POSITION_RIGHTThe specified point x will become the right of the toolbar window.

Vertical Alignment Flags

ValueMeaning
TOOLBAR_POSITION_TOPThe specified point y will become the top of the toolbar window.
TOOLBAR_POSITION_BOTTOMThe specified point y will become the bottom of the toolbar window.

Returns

ValueMeaning
SUCCESSThe function was successful.
< 1An error occurred. Refer to Return Codes.

Comments

To get the current toolbar position and alignment, call LToolbar::GetPosition.

Required DLLs and Libraries

Functions

Topics

Example

For an example, refer to LToolbar::Create.

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++ Class Library Help