LToolbar::GetPosition

Summary

Gets the toolbar's current position.

Syntax

#include "ltwrappr.h"

POINT LToolbar::GetPosition (dwFlags)

Parameters

L_UINT32 dwFlags

Sets of flags that will specify how the lpptPos argument (in LToolbar::SetPosition) will be set. Choose one value from each category, and combine them using the bitwise OR operator ( | ).

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.

Returns

A POINT structure that contains the current position.

Comments

To set the position of the toolbar, call LToolbar::SetPosition.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT LToolbar__GetPositionExample( LToolbar &Toolbar, L_INT* pnWidth) 
 
{ 
   // check the validity of the toolbar handle 
 
   if (Toolbar.IsValid () )  
 
   { 
 
      POINT ptPos00, ptPos01 ;  
 
      // get the toolbar position  
 
      ptPos00 = Toolbar.GetPosition (TOOLBAR_POSITION_LEFT | TOOLBAR_POSITION_TOP ) ; 
 
      ptPos01 = Toolbar.GetPosition (TOOLBAR_POSITION_RIGHT | TOOLBAR_POSITION_TOP ) ; 
 
      *pnWidth = ptPos01.x - ptPos00.x ; 
 
   } 
 
   else 
 
   { 
 
      return FAILURE; 
 
   } 
 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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