CTabCtrl::SetCurFocus

 

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

Syntax

      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

CTabCtrl Class
Hierarchy Chart
CTabCtrl::SetCurSel