共用方式為


CReBarCtrl::GetRowHeight

實作 Win32 訊息 RB_GETROWHEIGHT的行為 Windows SDK,如中所述。

UINT GetRowHeight( 
   UINT uRow  
) const;

參數

  • uRow
    將其高度的擷取群組列以零起始的索引。

傳回值

表示資料列高度的 UINT 值,單位為像素。

範例

int nCount = m_wndReBar.GetReBarCtrl().GetRowCount();
for (int i = 0; i < nCount; i++)
{
   UINT nHeight = m_wndReBar.GetReBarCtrl().GetRowHeight(i);
   CString msg;
   msg.Format(_T("Height of row %d is %u"), i, nHeight);
   AfxMessageBox(msg);
}   

需求

Header: afxcmn.h

請參閱

參考

CReBarCtrl 類別

階層架構圖表

CReBarCtrl::GetRowCount