LToolbar::SetPosition

#include "ltwrappr.h"

L_INT LToolbar::SetPosition (lpptPos, dwFlags )

LPPOINT lpptPos;

pointer to a structure

L_UINT32 dwFlags;

position flags

Sets the toolbar window position.

Parameter Description
lpptPos Pointer to a POINT structure that contains values used to align the toolbar. The coordinates are with respect to the screen.
dwFlags Set of flags that will indicate how the toolbar will be aligned. Possible values are:
  One of the following values:
  Horizontal alignment flags:
  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.
  Vertical alignment flags:
  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.
  The values from each category are combined by using the bitwise OR operator (|).

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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

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.

See Also

Functions:

LToolbar::GetPosition, Class Members

Topics:

Getting and Setting Toolbar Characteristics

Example

For an example, refer to LToolbar::Create.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Toolbar C++ Class Library Help