Condividi tramite


CStatusBarCtrl::GetTextLength

Recupera la lunghezza, i caratteri, di testo da parte specifica di un controllo barra di stato.

int GetTextLength( 
   int nPane, 
   int* pType = NULL 
) const;

Parametri

  • nPane
    Indice a base zero della parte da cui recuperare testo.

  • pType
    Puntatore a un intero che riceve informazioni sul tipo. Il tipo può essere uno dei valori seguenti:

    • 0 Il testo viene disegnato con un bordo per visualizzare più basso del piano della barra di stato.

    • SBT_NOBORDERS il testo viene tracciato senza bordi.

    • SBT_OWNERDRAW il testo venga rappresentato dalla finestra padre.

    • SBT_POPOUT il testo viene disegnato con un bordo per visualizzare il primo piano della barra di stato.

Valore restituito

La lunghezza, i caratteri, del testo.

Esempio

int nType;
int nLength = m_wndSBC.GetTextLength(0, &nType);

switch( nType )
{
   case 0:
      // Text is drawn with a border to appear lower than the  
      // plane of the status bar 
      break;
   case SBT_NOBORDERS:
      // text is drawn without borders 
      break;
   case SBT_OWNERDRAW:
      // Text is drawn by the parent window 
      break;
   case SBT_POPOUT:
      // Text is drawn with a border to appear higher than the  
      // plane of the status bar 
      break;
}   

Requisiti

Header: afxcmn.h

Vedere anche

Riferimenti

Classe CStatusBarCtrl

Grafico delle gerarchie

CStatusBarCtrl::GetText

CStatusBarCtrl::SetText