CGXTabWnd::GetBeam

CGXTabBeam& GetBeam();

Return Value

A reference to the tab-beam object.

Example

Use the GetBeam method to gain access to the tab-beam:

// currently selected tab
GetBeam().GetCurSel();
// tab label
CString s = GetBeam().GetTab(n).sLabel;
// change tab label
GetBeam().GetTab(n).sLabel = "New Entry";
GetBeam().Invalidate();
// lookup tab index for a specific window object
CSring CMyView::GetLabel()
{
   int n = GetParentTabWnd().GetBeam().FindTab(this);
   ASSERT(n != -1);
   CString s = GetParentTabWnd().GetBeam().GetTab(n).sLabel;
   return s;
}

See Also

 CGXTabBeam

CGXTabWnd

 Class Overview |  Class Members