L_TBIsVisible

#include "LtTLB.h"

L_LTTLB_API L_INT L_TBIsVisible(pToolbar, pfVisible);

Determines the visibility of the toolbar window.

Parameters

pTOOLBARHANDLE pToolbar

Pointer to a toolbar handle.

L_BOOL * pfVisible

Pointer to a variable to be updated with the visibility status of the toolbar. Possible values are:

Value Meaning
TRUE The specified toolbar is visible.
FALSE The specified toolbar is not visible.

Returns

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

Comments

To change the visibility status of the toolbar, call L_TBSetVisible.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This function will toggle the toolbar visibility state.

L_INT TBIsVisibleExample(pTOOLBARHANDLE pLeadToolbar ) 
{ 
   L_INT nRet; 
 
   nRet = L_TBIsValid ( pLeadToolbar ); 
   /* check the validity of the toolbar handle */ 
   if (SUCCESS == nRet ) 
   { 
      L_BOOL fVisible ; 
 
      /* Get the visibility state of the toolbar */ 
      nRet = L_TBIsVisible ( pLeadToolbar, &fVisible ) ; 
      if(nRet != SUCCESS) 
         return nRet; 
      if ( fVisible ) 
      { 
         nRet = L_TBSetVisible ( pLeadToolbar, FALSE ) ; /* Hide the toolbar */ 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
      else 
      { 
         nRet = L_TBSetVisible ( pLeadToolbar, TRUE ) ; /* Show the toolbar */ 
         if(nRet != SUCCESS) 
            return nRet; 
      } 
 
      return SUCCESS ; 
   } 
   else 
      return nRet ; 
} 

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

LEADTOOLS Toolbar C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.