LToolbar::IsVisible

Summary

Queries the visibility of the toolbar window.

Syntax

#include "ltwrappr.h"

L_BOOL LToolbar::IsVisible()

Returns

Value Meaning
TRUE Visible.
FALSE Not visible.

Comments

To change the visibility status of the toolbar, call LToolbar::SetVisible.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This function will toggle the toolbar visibility state.

L_INT LToolbar__IsVisibleExample(LToolbar* tlb) 
{ 
   L_INT nRet; 
 
   if ( tlb->IsValid () ) /* check the validity of the toolbar handle */ 
   { 
 
      /* Get the visibility state of the toolbar */ 
 
      if (tlb->IsVisible () )  
      { 
         /* Hid the toolbar */ 
         nRet = tlb->SetVisible (FALSE ) ; 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
      else 
      { 
         /* Show the toolbar */ 
         nRet = tlb->SetVisible (TRUE ) ; 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
   } 
   else 
   { 
      return FAILURE ; 
   } 
 
   return SUCCESS ; 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 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.