CStatusBarCtrl::GetText

int GetText( LPCTSTR lpszText, int nPane, int* pType ) const;

Return Value

The length, in characters, of the text.

Parameters

lpszText

Address of the buffer that receives the text. This parameter is a null-terminated string.

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 text from the given part of a status bar control.

Example

int nType;
char* szPaneOneText;

szPaneOneText = new char[ GetTextLength( 1, &nType ) ];
int nTextLength = GetText( szPaneOneText, 1, &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::SetText, CStatusBarCtrl::GetTextLength