LToolbar::IsVisible

#include "ltwrappr.h"

L_BOOL LToolbar::IsVisible(void)

Queries the visibility of the toolbar window.

Returns

TRUE

Visible.

FALSE

Not visible.

Comments

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

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:

LToolbar::SetVisible, Class Members

Topics:

Getting and Setting Toolbar Characteristics

Example

/* This function will toggle the toolbar visibility state */

LToolbar tlb;

L_INT ToggleToolbar ()
{
   if ( tlb.IsValid () ) /* check the validity of the toolbar handle */
   {
      
      /* Get the visibility state of the toolbar */
     
      if (tlb.IsVisible () ) 
      {
         /* Hid the toolbar */
         tlb.SetVisible (FALSE ) ;   
      }
      else
      {
         /* Show the toolbar */
         tlb.SetVisible (TRUE ) ;
      }

      return SUCCESS ;
   }
   else
   {
      return FAILURE ;
   }
}