CStatusBarCtrl::GetTextLength

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

Return Value

The length, in characters, of the text.

Parameters

nPane

Zero-based index of the part from which to retrieve text.

pType

Pointer to an integer that receives the type information. The type can be one of these values:

Remarks

Call this function to retrieve the length, in characters, of the text from the given part of a status bar control.

Example

int nType;
int nLength = 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;
}

CStatusBarCtrl OverviewClass MembersHierarchy Chart

See Also   CStatusBarCtrl::GetText, CStatusBarCtrl::SetText