cbBarHintsPlugin::cbBarHintsPlugin(void)
: mpPane( 0 ),
- mBtnPressed ( FALSE ),
- mCloseBoxOn ( TRUE ),
- mCollapseBoxOn( TRUE ),
+ mBtnPressed ( false ),
+ mCloseBoxOn ( true ),
+ mCollapseBoxOn( true ),
mGrooveCount ( 2 ),
mHintGap ( 4 ),
mXWeight ( 2 )
: cbPluginBase( pLayout, paneMask ),
mpPane( 0 ),
- mBtnPressed ( FALSE ),
- mCloseBoxOn ( TRUE ),
- mCollapseBoxOn( TRUE ),
+ mBtnPressed ( false ),
+ mCloseBoxOn ( true ),
+ mCollapseBoxOn( true ),
mGrooveCount ( 2 ),
mHintGap ( 5 ),
mXWeight ( 2 )
if ( info.IsExpanded() )
{
- isAtLeft = FALSE;
+ isAtLeft = false;
cbBarInfo* pCur = info.mpPrev;
{
if ( !pCur->IsFixed() )
{
- isAtLeft = TRUE; break;
+ isAtLeft = true; break;
}
pCur = pCur->mpPrev;
wxRect& rect = info.mBoundsInParent;
- if ( info.IsFixed() ) return FALSE;
+ if ( info.IsFixed() ) return false;
int boxOfs, grooveOfs, coord;
}
}
- return FALSE;
+ return false;
}
// handlers for plugin-events
int i;
for ( i = 0; i != BOXES_IN_HINT; ++i )
{
- mBoxes[i]->mPressed = FALSE;
- mBoxes[i]->mWasClicked = FALSE;
+ mBoxes[i]->mPressed = false;
+ mBoxes[i]->mWasClicked = false;
}
for ( i = 0; i != BOXES_IN_HINT; ++i )
{
if ( mBoxes[i]->mPressed )
{
- mBtnPressed = TRUE;
+ mBtnPressed = true;
mpClickedBar = &bar;
return; // event handled
{
if ( i == 0 )
{
- mpLayout->SetBarState( mpClickedBar, wxCBAR_HIDDEN, TRUE );
+ mpLayout->SetBarState( mpClickedBar, wxCBAR_HIDDEN, true );
// Notify bar child window of close event:
if(mpClickedBar->mpBarWnd!=NULL)
mpClickedBar->mpBarWnd->Close();
}
}
- mBtnPressed = FALSE;
+ mBtnPressed = false;
return;
}
else