Partilhar via


CTabCtrl::SetCurFocus

Sets the focus to a specified tab in a tab control.

void SetCurFocus(
  int nItem 
);

Parameters

  • nItem
    Specifies the index of the tab that gets the focus.

Remarks

This member function implements the behavior of the Win32 message TCM_SETCURFOCUS, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CTabCtrl Class

Hierarchy Chart

CTabCtrl::SetCurSel

Other Resources

CTabCtrl Members