LToolbar::GetPosition
#include "ltwrappr.h"
POINT LToolbar::GetPosition (dwFlags)
| L_UINT32 dwFlags; | /* position flags */ | 
Gets the toolbar's current position.
| Parameter | Description | |
| dwFlags | Set of flags that will specify how the lpptPos argument will be set. 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
A POINT structure that contains the current position.
Comments
To set the position of the toolbar, call LToolbar::SetPosition.
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: | |
| 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;
}