Ejemplo n.º 1
0
void CStatusCmdUI::SetText( LPCTSTR lpszText )
/******************************************/
{
    CStatusBar *pStatusBar = (CStatusBar *)m_pOther;
    ASSERT( pStatusBar != NULL );
    ASSERT( pStatusBar->IsKindOf( RUNTIME_CLASS( CStatusBar ) ) );
    pStatusBar->SetPaneText( m_nIndex, lpszText );
}
Ejemplo n.º 2
0
void CStatusCmdUI::SetCheck( int nCheck )
/***************************************/
{
    CStatusBar *pStatusBar = (CStatusBar *)m_pOther;
    ASSERT( pStatusBar != NULL );
    ASSERT( pStatusBar->IsKindOf( RUNTIME_CLASS( CStatusBar ) ) );
    UINT nStyle = pStatusBar->GetPaneStyle( m_nIndex );
    if( nCheck == 0 ) {
        nStyle &= ~SBPS_POPOUT;
    } else {
        nStyle |= SBPS_POPOUT;
    }
    pStatusBar->SetPaneStyle( m_nIndex, nStyle );
}
Ejemplo n.º 3
0
void CStatusCmdUI::Enable( BOOL bOn )
/***********************************/
{
    CStatusBar *pStatusBar = (CStatusBar *)m_pOther;
    ASSERT( pStatusBar != NULL );
    ASSERT( pStatusBar->IsKindOf( RUNTIME_CLASS( CStatusBar ) ) );
    UINT nStyle = pStatusBar->GetPaneStyle( m_nIndex );
    if( bOn ) {
        nStyle &= ~SBPS_DISABLED;
    } else {
        nStyle |= SBPS_DISABLED;
    }
    pStatusBar->SetPaneStyle( m_nIndex, nStyle );
}