TabCtrl_GetCurSel  4JCDI0 

The TabCtrl_GetCurSel macro determines the currently selected tab in a tab control. You can use this macro or explicitly send the TCM_GETCURSELH3GU4_ message.

int TabCtrl_GetCurSel(

    HWND hwnd

 

   );

 

 

Parameters

hwnd

Handle to the tab control.

 

Return Values

Returns the index of the selected tab if successful or  - 1 if no tab is selected.

See Also

TCM_GETCURSEL