Export (0) Print
Expand All

CStatusBarCtrl::GetTextLength

Visual Studio 6.0

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:

  • 0   The text is drawn with a border to appear lower than the plane of the status bar.

  • SBT_NOBORDERS   The text is drawn without borders.

  • SBT_OWNERDRAW   The text is drawn by the parent window.

  • SBT_POPOUT   The text is drawn with a border to appear higher than the plane of the status bar.

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

Show:
© 2014 Microsoft