#include "ltwrappr.h"
L_BOOL LToolbar::IsVisible()
Queries the visibility of the toolbar window.
TRUE |
Visible. |
FALSE |
Not visible. |
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.
Functions: |
|
Topics: |
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 ;
}