CStatusBarCtrl::GetTextLength
상태 표시줄 컨트롤의 특정된 부분에서 텍스트의 문자 길이 검색합니다.
int GetTextLength(
int nPane,
int* pType = NULL
) const;
매개 변수
nPane
인덱스 파트를 검색할 텍스트입니다.pType
형식 정보를 수신 하는 정수에 대 한 포인터입니다.형식은 다음이 값 중 하나가 될 수 있습니다.0 텍스트를 상태 표시줄의 평면 보다 아래쪽 테두리가 그려집니다.
SBT_NOBORDERS텍스트 테두리 없이 표시 됩니다.
SBT_OWNERDRAW부모 창에서 텍스트를 그립니다.
SBT_POPOUT텍스트를 상태 표시줄의 평면 보다 높은 테두리가 그려집니다.
반환 값
텍스트의 문자 길이입니다.
예제
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;
}
요구 사항
헤더: afxcmn.h