CStatusBarCtrl::GetTextLength
Durum çubuğu denetimi belirli bir parçası metnin karakter uzunluğu alır.
int GetTextLength(
int nPane,
int* pType = NULL
) const;
Parametreler
nPane
Metin almak hangi bölümünden sıfır tabanlı dizini.pType
İşaretçi tamsayı türü bilgilerini alır.Tür şu değerlerden biri olabilir:0 Metnini durum çubuğunda düzlem'den daha düşük görünür bir kenarlık ile çizilir.
SBT_NOBORDERSMetni kenarlıklar olmadan çizilir.
SBT_OWNERDRAWMetni üst pencere çizilir.
SBT_POPOUTDurum çubuğu düzlem'den daha yüksek görünmesini kenarlıklı metin çizilir.
Dönüş Değeri
Metnin karakter uzunluğu.
Örnek
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;
}
Gereksinimler
Başlık: afxcmn.h