TabCtrl_GetItemCount

The TabCtrl_GetItemCount macro retrieves the number of tabs in the tab control. You can use this macro or explicitly send the TCM_GETITEMCOUNT message.

int TabCtrl_GetItemCount(

HWND hwnd  
);  

Parameters

hwnd

Handle to the tab control.

Return Values

Returns the number of items if successful or zero otherwise.

See Also

TCM_GETITEMCOUNT