LRasterPaintWindow::SetToolbarPosition

Summary

Sets the toolbar window position.

Syntax

#include "Ltwrappr.h"

static L_INT LRasterPaintWindow::SetToolbarPosition(lpptPos, dwFlags = TOOLBAR_POSITION_TOP| TOOLBAR_POSITION_LEFT)

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

Set of flags that will indicate how the toolbar will be aligned. Possible values are:

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

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

See Also

Functions

Example

For an example, refer to LRasterPaintWindow::CreateToolbar.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DigitalPaint C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.